mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
(svn r20666) -Codechange: enable drawing of (NewGRF) objects
This commit is contained in:
parent
fba19a41d5
commit
d4403cb649
@ -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 ((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;
|
const DrawTileSprites *dts = NULL;
|
||||||
Owner to = GetTileOwner(ti->tile);
|
Owner to = GetTileOwner(ti->tile);
|
||||||
PaletteID palette = to == OWNER_NONE ? PAL_NONE : COMPANY_SPRITE_COLOUR(to);
|
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);
|
if (spec->flags & OBJECT_FLAG_ALLOW_UNDER_BRIDGE) DrawBridgeMiddle(ti);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user