summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-02-04 22:44:05 +0000
committersmatz <smatz@openttd.org>2008-02-04 22:44:05 +0000
commit23c669fe50138f6a029d6c7b979aa26067982bb7 (patch)
tree82f0bac7b2df225cd48313fcb9b58b93954de6f5
parentdbfdc5df94c56adc41763a47f4cf67f38efb87b0 (diff)
downloadopenttd-23c669fe50138f6a029d6c7b979aa26067982bb7.tar.xz
(svn r12061) -Cleanup: since r12060, DC_FORCETEST is not used anymore
-rw-r--r--src/command.cpp2
-rw-r--r--src/command_type.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/command.cpp b/src/command.cpp
index c550dcb8f..0a6393f66 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -426,7 +426,7 @@ CommandCost DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint32
_docommand_recursive++;
/* only execute the test call if it's toplevel, or we're not execing. */
- if (_docommand_recursive == 1 || !(flags & DC_EXEC) || (flags & DC_FORCETEST) ) {
+ if (_docommand_recursive == 1 || !(flags & DC_EXEC) ) {
SetTownRatingTestMode(true);
res = proc(tile, flags & ~DC_EXEC, p1, p2);
SetTownRatingTestMode(false);
diff --git a/src/command_type.h b/src/command_type.h
index 22f9c2014..9a2649cbc 100644
--- a/src/command_type.h
+++ b/src/command_type.h
@@ -271,7 +271,6 @@ enum {
DC_NO_RAIL_OVERLAP = 0x10, ///< don't allow overlap of rails (used in buildrail)
DC_AI_BUILDING = 0x20, ///< special building rules for AI
DC_NO_TOWN_RATING = 0x40, ///< town rating does not disallow you from building
- DC_FORCETEST = 0x80, ///< force test too.
};
/**