Add object shore/flooding support, adjust handling of foundations
Add info to debug window
This commit is contained in:
@@ -427,7 +427,7 @@ static void DrawTileLayout(TileInfo *ti, const TileLayoutSpriteGroup *group, con
|
||||
PaletteID pal = dts->ground.pal;
|
||||
|
||||
if (spec->ctrl_flags & OBJECT_CTRL_FLAG_USE_LAND_GROUND) {
|
||||
if (IsTileOnWater(ti->tile)) {
|
||||
if (IsTileOnWater(ti->tile) && GetObjectGroundType(ti->tile) != OBJECT_GROUND_SHORE) {
|
||||
DrawWaterClassGround(ti);
|
||||
} else {
|
||||
switch (GetObjectGroundType(ti->tile)) {
|
||||
@@ -439,6 +439,10 @@ static void DrawTileLayout(TileInfo *ti, const TileLayoutSpriteGroup *group, con
|
||||
DrawGroundSprite(GetSpriteIDForSnowDesert(ti->tileh, GetObjectGroundDensity(ti->tile)), PAL_NONE);
|
||||
break;
|
||||
|
||||
case OBJECT_GROUND_SHORE:
|
||||
DrawShoreTile(ti->tileh);
|
||||
break;
|
||||
|
||||
default:
|
||||
/* This should never be reached, just draw a black sprite to make the problem clear without being unnecessarily punitive */
|
||||
DrawGroundSprite(SPR_FLAT_BARE_LAND + SlopeToSpriteOffset(ti->tileh), PALETTE_ALL_BLACK);
|
||||
|
Reference in New Issue
Block a user