src/animated_tile.cpp
branchNewGRF_ports
changeset 10991 d8811e327d12
parent 10275 5e46b660ca6c
equal deleted inserted replaced
10731:67db0d431d5e 10991:d8811e327d12
   114 			if (_animated_tile_list[_animated_tile_count] == 0) break;
   114 			if (_animated_tile_list[_animated_tile_count] == 0) break;
   115 		}
   115 		}
   116 		return;
   116 		return;
   117 	}
   117 	}
   118 
   118 
   119 	_animated_tile_count = SlGetFieldLength() / sizeof(*_animated_tile_list);
   119 	_animated_tile_count = (uint)SlGetFieldLength() / sizeof(*_animated_tile_list);
   120 
   120 
   121 	/* Determine a nice rounded size for the amount of allocated tiles */
   121 	/* Determine a nice rounded size for the amount of allocated tiles */
   122 	_animated_tile_allocated = 256;
   122 	_animated_tile_allocated = 256;
   123 	while (_animated_tile_allocated < _animated_tile_count) _animated_tile_allocated *= 2;
   123 	while (_animated_tile_allocated < _animated_tile_count) _animated_tile_allocated *= 2;
   124 
   124