diff options
author | rubidium <rubidium@openttd.org> | 2007-06-18 21:00:14 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-18 21:00:14 +0000 |
commit | 7dda2d93da840519f1388d0191a00362ff97feb6 (patch) | |
tree | 1ba3bbf25a5886a7f40a02d3403d53c57e634d75 /src/misc_gui.cpp | |
parent | 6785ea670fa3eb4734be42851b0f31199bc5b7e5 (diff) | |
download | openttd-7dda2d93da840519f1388d0191a00362ff97feb6.tar.xz |
(svn r10207) -Codechange: remove the redundant player_money in favour of the money64, which is now renamed to player_money.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index ff3db74af..2444aa27b 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -103,11 +103,10 @@ static void Place_LandInfo(TileIndex tile) p = GetPlayer(IsValidPlayer(_local_player) ? _local_player : PLAYER_FIRST); t = ClosestTownFromTile(tile, _patches.dist_local_authority); - old_money = p->money64; - p->money64 = p->player_money = 0x7fffffff; + old_money = p->player_money; + p->player_money = 0x7fffffff; costclear = DoCommand(tile, 0, 0, 0, CMD_LANDSCAPE_CLEAR); - p->money64 = old_money; - UpdatePlayerMoney32(p); + p->player_money = old_money; /* Because build_date is not set yet in every TileDesc, we make sure it is empty */ td.build_date = 0; |