1
0
Fork 0

(svn r20666) -Codechange: enable drawing of (NewGRF) objects

release/1.1
rubidium 2010-08-28 18:57:32 +00:00
parent fba19a41d5
commit d4403cb649
1 changed files with 36 additions and 32 deletions

View File

@ -259,6 +259,7 @@ static void DrawTile_Object(TileInfo *ti)
if ((spec->flags & OBJECT_FLAG_HAS_NO_FOUNDATION) == 0) DrawFoundation(ti, GetFoundation_Object(ti->tile, ti->tileh));
if (type < NEW_OBJECT_OFFSET) {
const DrawTileSprites *dts = NULL;
Owner to = GetTileOwner(ti->tile);
PaletteID palette = to == OWNER_NONE ? PAL_NONE : COMPANY_SPRITE_COLOUR(to);
@ -296,6 +297,9 @@ static void DrawTile_Object(TileInfo *ti)
);
}
}
} else {
DrawNewObjectTile(ti, spec);
}
if (spec->flags & OBJECT_FLAG_ALLOW_UNDER_BRIDGE) DrawBridgeMiddle(ti);
}