diff options
author | rubidium <rubidium@openttd.org> | 2010-08-03 08:58:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-03 08:58:12 +0000 |
commit | 3bfe26c69d10c8395057a0fe168906182b563769 (patch) | |
tree | c2dc97d833168bb2935913e3de297fe003ab6703 /src/town_cmd.cpp | |
parent | f812e800028ae4fc65230da398c77d5d0fd695e7 (diff) | |
download | openttd-3bfe26c69d10c8395057a0fe168906182b563769.tar.xz |
(svn r20337) -Codechange: unify the construction of objects on the map
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index db93a7a00..c8e271178 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -21,7 +21,7 @@ #include "company_base.h" #include "news_func.h" #include "gui.h" -#include "unmovable_map.h" +#include "unmovable.h" #include "genworld.h" #include "newgrf_debug.h" #include "newgrf_house.h" @@ -2504,7 +2504,7 @@ static CommandCost TownActionBuildStatue(Town *t, DoCommandFlag flags) if (CircularTileSearch(&tile, 9, SearchTileForStatue, NULL)) { if (flags & DC_EXEC) { DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); - MakeStatue(tile, _current_company, t->index); + BuildUnmovable(UNMOVABLE_STATUE, tile, _current_company, t->index); SetBit(t->statues, _current_company); // Once found and built, "inform" the Town. MarkTileDirtyByTile(tile); } |