(svn r25833) -Codechange: Move ObjectType from map array into pool item.

This commit is contained in:
frosch
2013-10-12 16:30:42 +00:00
parent 478500abbc
commit d9d978d6d2
10 changed files with 56 additions and 62 deletions

View File

@@ -2635,7 +2635,7 @@ CommandCost CmdDeleteTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
} else {
Object *o = Object::GetByTile(tile);
if (o->town == t) {
if (GetObjectType(tile) == OBJECT_STATUE) {
if (o->type == OBJECT_STATUE) {
/* Statue... always remove. */
try_clear = true;
} else {