Codechange: make TimerGameCalendar Date and Year types strongly typed (#10761)
This commit is contained in:
@@ -787,7 +787,7 @@ void RunTileLoop()
|
||||
_tile_type_procs[GetTileType(tile)]->tile_loop_proc(tile);
|
||||
|
||||
/* Get the next tile in sequence using a Galois LFSR. */
|
||||
tile = (tile >> 1) ^ (-(int32_t)(tile & 1) & feedback);
|
||||
tile = (static_cast<uint32_t>(tile) >> 1) ^ (-(int32_t)(static_cast<uint32_t>(tile) & 1) & feedback);
|
||||
}
|
||||
|
||||
_cur_tileloop_tile = tile;
|
||||
@@ -935,11 +935,11 @@ static void GenerateTerrain(int type, uint flag)
|
||||
|
||||
static void CreateDesertOrRainForest(uint desert_tropic_line)
|
||||
{
|
||||
TileIndex update_freq = Map::Size() / 4;
|
||||
uint update_freq = Map::Size() / 4;
|
||||
const TileIndexDiffC *data;
|
||||
|
||||
for (TileIndex tile = 0; tile != Map::Size(); ++tile) {
|
||||
if ((tile % update_freq) == 0) IncreaseGeneratingWorldProgress(GWP_LANDSCAPE);
|
||||
if ((static_cast<uint32_t>(tile) % update_freq) == 0) IncreaseGeneratingWorldProgress(GWP_LANDSCAPE);
|
||||
|
||||
if (!IsValidTile(tile)) continue;
|
||||
|
||||
@@ -960,7 +960,7 @@ static void CreateDesertOrRainForest(uint desert_tropic_line)
|
||||
}
|
||||
|
||||
for (TileIndex tile = 0; tile != Map::Size(); ++tile) {
|
||||
if ((tile % update_freq) == 0) IncreaseGeneratingWorldProgress(GWP_LANDSCAPE);
|
||||
if ((static_cast<uint32_t>(tile) % update_freq) == 0) IncreaseGeneratingWorldProgress(GWP_LANDSCAPE);
|
||||
|
||||
if (!IsValidTile(tile)) continue;
|
||||
|
||||
|
Reference in New Issue
Block a user