summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-09-03 11:33:55 +0000
committerDarkvater <darkvater@openttd.org>2005-09-03 11:33:55 +0000
commit828e7ed3e766c8b1fad9dede3fbb5eff6afc7168 (patch)
tree47510a3ad8eb8365254e0220013a6c926ce096fc /openttd.c
parent92270500e990b2039049ad0dec842a7f5a27d32a (diff)
downloadopenttd-828e7ed3e766c8b1fad9dede3fbb5eff6afc7168.tar.xz
(svn r2909) Game would hang where the autosave_on_exit was activated.
- Updated VS.NET and VS6 project files changed AI files
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openttd.c b/openttd.c
index 997950a24..fec149d36 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;