(svn r20337) -Codechange: unify the construction of objects on the map

This commit is contained in:
rubidium
2010-08-03 08:58:12 +00:00
parent 3a971a7f03
commit d7921b24e6
5 changed files with 43 additions and 77 deletions

View File

@@ -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);
}