summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-12-23 18:09:03 +0000
committerfrosch <frosch@openttd.org>2013-12-23 18:09:03 +0000
commiteca86d1baf5f374d25dcc9bf0ff2bad328bdffab (patch)
treede92bcef7f015768dbe15e8a3a9513fbd377d911 /src/command.cpp
parenta9e8d7a361470b7c97a858f6663144f02a929cfd (diff)
downloadopenttd-eca86d1baf5f374d25dcc9bf0ff2bad328bdffab.tar.xz
(svn r26174) -Codechange: Rename BaseStorageArray to BasePersistentStorageArray
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command.cpp b/src/command.cpp
index 2585eda00..fe44dabde 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -597,7 +597,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac
* @param cmd the command cost to return.
* @param clear whether to keep the storage changes or not.
*/
-#define return_dcpi(cmd, clear) { _docommand_recursive = 0; ClearStorageChanges(clear); return cmd; }
+#define return_dcpi(cmd, clear) { _docommand_recursive = 0; ClearPersistentStorageChanges(clear); return cmd; }
/*!
* Helper function for the toplevel network safe docommand function for the current company.
@@ -661,7 +661,7 @@ CommandCost DoCommandPInternal(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd,
/* Test the command. */
_cleared_object_areas.Clear();
SetTownRatingTestMode(true);
- ClearStorageChanges(false);
+ ClearPersistentStorageChanges(false);
CommandCost res = proc(tile, flags, p1, p2, text);
SetTownRatingTestMode(false);
@@ -705,7 +705,7 @@ CommandCost DoCommandPInternal(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd,
/* Actually try and execute the command. If no cost-type is given
* use the construction one */
_cleared_object_areas.Clear();
- ClearStorageChanges(false);
+ ClearPersistentStorageChanges(false);
CommandCost res2 = proc(tile, flags | DC_EXEC, p1, p2, text);
if (cmd_id == CMD_COMPANY_CTRL) {