summaryrefslogtreecommitdiff
path: root/unmovable_cmd.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-05-11 18:09:12 +0000
committerdarkvater <darkvater@openttd.org>2005-05-11 18:09:12 +0000
commit238106257d8394ad40fe53af05ff27c1c939d2f9 (patch)
tree0bdf9703d0122b09634ada7e63132f874e7b3dc5 /unmovable_cmd.c
parent24e34f022b3174c76692daec8c7395b23911d6d6 (diff)
downloadopenttd-238106257d8394ad40fe53af05ff27c1c939d2f9.tar.xz
(svn r2296) - Fix (regression): oops, forgot the MS code-decleration rules :p
Diffstat (limited to 'unmovable_cmd.c')
-rw-r--r--unmovable_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unmovable_cmd.c b/unmovable_cmd.c
index 3d4d33129..b492febd6 100644
--- a/unmovable_cmd.c
+++ b/unmovable_cmd.c
@@ -373,8 +373,9 @@ int32 CmdDestroyCompanyHQ(int x, int y, uint32 flags, uint32 p1, uint32 p2)
/* Find player that has HQ flooded, and reset their location_of_house */
if (_current_player == OWNER_WATER) {
- tile = TILE_FROM_XY(x,y);
bool dodelete = false;
+ tile = TILE_FROM_XY(x,y);
+
FOR_ALL_PLAYERS(p) {
if (p->location_of_house == tile) {
dodelete = true;