Fix compiler warnings on Windows ARM64

pull/595/head
Jonathan G Rennison 9 months ago
parent 44d4d4944c
commit 8481fb4b7b

@ -779,7 +779,9 @@ void RunTileLoop(bool apply_day_length)
while (count--) {
/* Get the next tile in sequence using a Galois LFSR. */
TileIndex next = (tile >> 1) ^ (-(int32)(tile & 1) & feedback);
if (count > 0) PREFETCH_NTA(&_m[next]);
if (count > 0) {
PREFETCH_NTA(&_m[next]);
}
_tile_type_procs[GetTileType(tile)]->tile_loop_proc(tile);
@ -804,7 +806,9 @@ void RunAuxiliaryTileLoop()
while (count--) {
/* Get the next tile in sequence using a Galois LFSR. */
TileIndex next = (tile >> 1) ^ (-(int32)(tile & 1) & feedback);
if (count > 0) PREFETCH_NTA(&_m[next]);
if (count > 0) {
PREFETCH_NTA(&_m[next]);
}
if (IsFloodingTypeTile(tile) && !IsNonFloodingWaterTile(tile)) {
FloodingBehaviour fb = GetFloodingBehaviour(tile);

Loading…
Cancel
Save