summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-18 19:41:47 +0000
committerrubidium <rubidium@openttd.org>2008-05-18 19:41:47 +0000
commit629c5ce740084d5f42ff72354523528488d063d8 (patch)
treeb97ec599dc0e11705a16eb01b6250bc25d7c77e2 /src
parent2e25df3ddf2e7981c9681443e7ad77414827c301 (diff)
downloadopenttd-629c5ce740084d5f42ff72354523528488d063d8.tar.xz
(svn r13167) -Codechange: prepend _ to a global variable.
Diffstat (limited to 'src')
-rw-r--r--src/saveload.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/saveload.cpp b/src/saveload.cpp
index b69fdbfe2..512d402e9 100644
--- a/src/saveload.cpp
+++ b/src/saveload.cpp
@@ -1534,7 +1534,7 @@ static void SaveFileError()
SaveFileDone();
}
-static ThreadObject *save_thread;
+static ThreadObject *_save_thread;
/** We have written the whole game into memory, _Savegame_pool, now find
* and appropiate compressor and start writing to file.
@@ -1604,10 +1604,10 @@ static void * CDECL SaveFileToDiskThread(void *arg)
void WaitTillSaved()
{
- if (save_thread == NULL) return;
+ if (_save_thread == NULL) return;
- save_thread->Join();
- save_thread = NULL;
+ _save_thread->Join();
+ _save_thread = NULL;
}
/**
@@ -1679,7 +1679,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb)
SaveFileStart();
if (_network_server ||
- (save_thread = ThreadObject::New(&SaveFileToDiskThread, NULL)) == NULL) {
+ (_save_thread = ThreadObject::New(&SaveFileToDiskThread, NULL)) == NULL) {
if (!_network_server) DEBUG(sl, 1, "Cannot create savegame thread, reverting to single-threaded mode...");
SaveOrLoadResult result = SaveFileToDisk(false);