diff --git a/openttd.c b/openttd.c
index 997950a244..fec149d367 100644
--- a/openttd.c
+++ b/openttd.c
@@ -553,6 +553,7 @@ static inline ThreadMsg OTTD_PollThreadEvent(void) {return _message;}
* It will stall as long as the mutex is not freed (handled) by the game */
void OTTD_SendThreadMessage(ThreadMsg msg)
{
+ if (_exit_game) return;
while (_message != 0) CSleep(10);
_message = msg;
diff --git a/openttd.dsp b/openttd.dsp
index f74d22eae3..9336538fa5 100644
--- a/openttd.dsp
+++ b/openttd.dsp
@@ -91,23 +91,23 @@ LINK32=link.exe
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
-SOURCE=.\ai_build.c
+SOURCE=.\ai\trolly\build.c
# End Source File
# Begin Source File
-SOURCE=.\ai_new.c
+SOURCE=.\ai\trolly\trolly.c.c
# End Source File
# Begin Source File
-SOURCE=.\ai_old.c
+SOURCE=.\ai\default.c
# End Source File
# Begin Source File
-SOURCE=.\ai_pathfinder.c
+SOURCE=.\ai\trolly\pathfinder.c
# End Source File
# Begin Source File
-SOURCE=.\ai_shared.c
+SOURCE=.\ai\trolly\shared.c
# End Source File
# Begin Source File
@@ -494,7 +494,7 @@ SOURCE=.\window.c
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
-SOURCE=.\ai_new.h
+SOURCE=.\ai\trolly\trolly.h
# End Source File
# Begin Source File
diff --git a/openttd.vcproj b/openttd.vcproj
index 85cdb9bf46..11713db87a 100644
--- a/openttd.vcproj
+++ b/openttd.vcproj
@@ -161,9 +161,6 @@
-
-
@@ -890,20 +887,27 @@
Name="AI Files"
Filter="">
-
-
-
-
-
-
-
-
+ RelativePath=".\ai\default\default.c">
+
+
+
+
+
+
+
+
+
+
+
+