(svn r1346) -Fix: fix signed/unsigned warnings

-Fix: latent removal of 2 lines from ttd.c which I forgot because the file was not saved :O
This commit is contained in:
darkvater
2005-01-03 19:09:45 +00:00
parent afb6e5441d
commit 79d29b7633
3 changed files with 6 additions and 8 deletions

View File

@@ -178,7 +178,7 @@ static void DisasterTick_Zeppeliner(Vehicle *v)
0);
}
}
if (v->y_pos >= (MapSizeY() + 9) * 16 - 1)
if (v->y_pos >= ((int)MapSizeY() + 9) * 16 - 1)
DeleteDisasterVeh(v);
return;
}
@@ -416,7 +416,7 @@ static void DisasterTick_3(Vehicle *v)
GetNewVehiclePos(v, &gp);
SetDisasterVehiclePos(v, gp.x, gp.y, v->z_pos);
if (gp.x > MapSizeX() * 16 + 9*16 - 1) {
if (gp.x > (int)MapSizeX() * 16 + 9*16 - 1) {
DeleteDisasterVeh(v);
return;
}
@@ -594,7 +594,7 @@ static void DisasterTick_4b(Vehicle *v)
GetNewVehiclePos(v, &gp);
SetDisasterVehiclePos(v, gp.x, gp.y, v->z_pos);
if (gp.x > MapSizeX() * 16 + 9*16 - 1) {
if (gp.x > (int)MapSizeX() * 16 + 9*16 - 1) {
DeleteDisasterVeh(v);
return;
}