summaryrefslogtreecommitdiff
path: root/unmovable_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-06-21 16:28:17 +0000
committercelestar <celestar@openttd.org>2005-06-21 16:28:17 +0000
commit354058341b8500cbb0075c0c568ec12063e84fe7 (patch)
treedbd1b9d6a856fcab15da2adfe0bacfb2bdc19b7e /unmovable_cmd.c
parent09f92807fc061b80b976a4134d71670ef4ef64fa (diff)
downloadopenttd-354058341b8500cbb0075c0c568ec12063e84fe7.tar.xz
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
Diffstat (limited to 'unmovable_cmd.c')
-rw-r--r--unmovable_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unmovable_cmd.c b/unmovable_cmd.c
index e7673c599..501f1c551 100644
--- a/unmovable_cmd.c
+++ b/unmovable_cmd.c
@@ -36,7 +36,7 @@ int32 DestroyCompanyHQ(TileIndex tile, uint32 flags)
}
if (!dodelete) return CMD_ERROR;
} else /* Destruction was initiated by player */
- p = DEREF_PLAYER(_current_player);
+ p = GetPlayer(_current_player);
if (p->location_of_house == 0) return CMD_ERROR;
@@ -62,7 +62,7 @@ int32 DestroyCompanyHQ(TileIndex tile, uint32 flags)
int32 CmdBuildCompanyHQ(int x, int y, uint32 flags, uint32 p1, uint32 p2)
{
TileIndex tile = TILE_FROM_XY(x,y);
- Player *p = DEREF_PLAYER(_current_player);
+ Player *p = GetPlayer(_current_player);
int cost;
SET_EXPENSES_TYPE(EXPENSES_PROPERTY);