Put 'solid' indicator on top of any overlays

This commit is contained in:
stevenhowes
2021-08-31 21:43:06 +01:00
parent 87a036fa2c
commit ab3bcabd63
2 changed files with 5 additions and 4 deletions
Binary file not shown.
+5 -4
View File
@@ -608,10 +608,6 @@ int game2_tick()
{ {
map[screen+1][x][y] = map[0][x][y]; map[screen+1][x][y] = map[0][x][y];
draw_tile(map[screen+1][x][y] & 127,x*100,y*100); draw_tile(map[screen+1][x][y] & 127,x*100,y*100);
if(((map[screen+1][x][y] >> 7) & 0x01))
{
draw_sprite("solid",x*100,y*100);
}
map_overlay[screen+1][x][y] = map_overlay[0][x][y]; map_overlay[screen+1][x][y] = map_overlay[0][x][y];
if(map_overlay[screen+1][x][y] > 0) if(map_overlay[screen+1][x][y] > 0)
@@ -619,6 +615,11 @@ int game2_tick()
draw_tile_trans(map_overlay[screen+1][x][y],x*100,y*100); draw_tile_trans(map_overlay[screen+1][x][y],x*100,y*100);
} }
if(((map[screen+1][x][y] >> 7) & 0x01))
{
draw_sprite("solid",x*100,y*100);
}
udt++; udt++;
} }