Fix some type conversion warnings

This commit is contained in:
Andreas Schmitt
2021-06-21 09:10:40 +02:00
parent f3b39b12a8
commit e1214a6d8b
7 changed files with 11 additions and 11 deletions

View File

@@ -1809,7 +1809,7 @@ static void DrawBridgeSignalOnMiddlePart(const TileInfo *ti, TileIndex bridge_st
sprite += SPR_ORIGINAL_SIGNALS_BASE + (position << 1);
} else {
/* All other signals are picked from add on sprites. */
sprite += SPR_SIGNALS_BASE + ((int)SIGTYPE_NORMAL - 1) * 16 + variant * 64 + (position << 1);
sprite += SPR_SIGNALS_BASE + (variant * 64) + (position << 1) - 16;
}
AddSortableSpriteToDraw(sprite, PAL_NONE, x, y, 1, 1, TILE_HEIGHT, z, false, 0, 0, BB_Z_SEPARATOR);