diff options
author | rubidium <rubidium@openttd.org> | 2010-05-13 12:42:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-13 12:42:56 +0000 |
commit | 241dd9a9f59208f5c9d025f0481dc00dac35989d (patch) | |
tree | f8f67882390f32d6a2d861e69515203ad473e5e7 /src/disaster_cmd.cpp | |
parent | 548dd91ef0ed6d470dc3553b994022ead99ece95 (diff) | |
download | openttd-241dd9a9f59208f5c9d025f0481dc00dac35989d.tar.xz |
(svn r19817) -Fix: MSVC compile warnings
Diffstat (limited to 'src/disaster_cmd.cpp')
-rw-r--r-- | src/disaster_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp index adbc118b8..314cf14de 100644 --- a/src/disaster_cmd.cpp +++ b/src/disaster_cmd.cpp @@ -525,13 +525,13 @@ static bool DisasterTick_Big_Ufo(DisasterVehicle *v) } DisasterVehicle *u = new DisasterVehicle(); - InitializeDisasterVehicle(u, -6 * TILE_SIZE, v->y_pos, 135, DIR_SW, ST_BIG_UFO_DESTROYER); + InitializeDisasterVehicle(u, -6 * (int)TILE_SIZE, v->y_pos, 135, DIR_SW, ST_BIG_UFO_DESTROYER); u->big_ufo_destroyer_target = v->index; DisasterVehicle *w = new DisasterVehicle(); u->SetNext(w); - InitializeDisasterVehicle(w, -6 * TILE_SIZE, v->y_pos, 0, DIR_SW, ST_BIG_UFO_DESTROYER_SHADOW); + InitializeDisasterVehicle(w, -6 * (int)TILE_SIZE, v->y_pos, 0, DIR_SW, ST_BIG_UFO_DESTROYER_SHADOW); w->vehstatus |= VS_SHADOW; } else if (v->current_order.GetDestination() == 0) { int x = TileX(v->dest_tile) * TILE_SIZE; @@ -767,7 +767,7 @@ static void Disaster_Helicopter_Init() DisasterVehicle *v = new DisasterVehicle(); - int x = -16 * TILE_SIZE; + int x = -16 * (int)TILE_SIZE; int y = TileY(found->location.tile) * TILE_SIZE + 37; InitializeDisasterVehicle(v, x, y, 135, DIR_SW, ST_HELICOPTER); |