(svn r2909) Game would hang where the autosave_on_exit was activated.

- Updated VS.NET and VS6 project files changed AI files
This commit is contained in:
Darkvater
2005-09-03 11:33:55 +00:00
parent 92270500e9
commit 828e7ed3e7
3 changed files with 27 additions and 22 deletions

View File

@@ -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;