Mercurial > hg > openttd
changeset 8462:2824c1ca7461 draft
(svn r12032) -Fix: When removing a statue, remove town statue flag for the statue owner, not current player.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Thu, 31 Jan 2008 23:04:45 +0000 (2008-01-31) |
parents | 740ea25209ab |
children | a841e826fcc9 |
files | src/unmovable_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -267,7 +267,7 @@ if (flags & DC_AUTO) return_cmd_error(STR_5800_OBJECT_IN_THE_WAY); TownID town = GetStatueTownID(tile); - ClrBit(GetTown(town)->statues, _current_player); + ClrBit(GetTown(town)->statues, GetTileOwner(tile)); InvalidateWindow(WC_TOWN_AUTHORITY, town); }