summaryrefslogtreecommitdiff
path: root/openttd.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-20 13:39:33 +0000
committertruelight <truelight@openttd.org>2006-08-20 13:39:33 +0000
commita06d5548ebe58ab290be50ca4b31368db5f4bc10 (patch)
tree2f784ed7fc2f9f935ddaf767abefd0e0aa5a4099 /openttd.h
parente159ada7a2a0367c99e94ee07b1d439e7ffacc0b (diff)
downloadopenttd-a06d5548ebe58ab290be50ca4b31368db5f4bc10.tar.xz
(svn r5977) -Fix [FS#78]: never set I-am-a-thread bool to true IN the thread. Machines with
dualcore can be faster then you want, and therefor create 2 threads, while you made the bool to make sure there is never more then 1 thread of this type.
Diffstat (limited to 'openttd.h')
-rw-r--r--openttd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/openttd.h b/openttd.h
index 4c412cb53..a7b2abd91 100644
--- a/openttd.h
+++ b/openttd.h
@@ -527,9 +527,9 @@ VARDEF byte _no_scroll;
* the OTTD_SendThreadMessage() function. Actions to perform upon the message are handled
* in the ProcessSentMessage() function */
typedef enum ThreadMsgs {
- MSG_OTTD_SAVETHREAD_START = 1,
- MSG_OTTD_SAVETHREAD_DONE = 2,
- MSG_OTTD_SAVETHREAD_ERROR = 3,
+ MSG_OTTD_NO_MESSAGE,
+ MSG_OTTD_SAVETHREAD_DONE,
+ MSG_OTTD_SAVETHREAD_ERROR,
} ThreadMsg;
void OTTD_SendThreadMessage(ThreadMsg msg);