diff options
author | rubidium <rubidium@openttd.org> | 2010-12-05 14:43:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-05 14:43:10 +0000 |
commit | 69766049cee33724746efc4806c0ab0563b051b9 (patch) | |
tree | b3ed2de48c4488539418ca54a8e9d98402a9f204 /src/network | |
parent | 085c693289a9e132c53145997a91f28d2aa35c58 (diff) | |
download | openttd-69766049cee33724746efc4806c0ab0563b051b9.tar.xz |
(svn r21396) -Codechange: rename SafeSaveOrLoad to SaveLoad (it only did load), and add support for (safe) loading with a LoadFilter
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp index 40e8d5668..fcbabda54 100644 --- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -439,7 +439,7 @@ NetworkRecvStatus ClientNetworkGameSocketHandler::SendMove(CompanyID company, co * DEF_CLIENT_RECEIVE_COMMAND has parameter: Packet *p ************/ -extern bool SafeSaveOrLoad(const char *filename, int mode, GameMode newgm, Subdirectory subdir); +extern bool SafeLoad(const char *filename, int mode, GameMode newgm, Subdirectory subdir, struct LoadFilter *lf = NULL); extern StringID _switch_mode_errorstr; DEF_GAME_RECEIVE_COMMAND(Client, PACKET_SERVER_FULL) @@ -757,7 +757,7 @@ DEF_GAME_RECEIVE_COMMAND(Client, PACKET_SERVER_MAP_DONE) SetWindowDirty(WC_NETWORK_STATUS_WINDOW, 0); /* The map is done downloading, load it */ - bool load_success = SafeSaveOrLoad(this->download_filename, SL_LOAD, GM_NORMAL, NO_DIRECTORY); + bool load_success = SafeLoad(this->download_filename, SL_LOAD, GM_NORMAL, NO_DIRECTORY); free(this->download_filename); this->download_filename = NULL; |