(svn r23104) -Codechange: prepare the vehicle/sign z for some further changes to reduce casting

This commit is contained in:
rubidium
2011-11-04 11:09:06 +00:00
parent a72544d5e1
commit f01b3e2721
9 changed files with 22 additions and 18 deletions

View File

@@ -993,7 +993,7 @@ static bool HandleCrashedAircraft(Aircraft *v)
/* make aircraft crash down to the ground */
if (v->crashed_counter < 500 && st == NULL && ((v->crashed_counter % 3) == 0) ) {
uint z = GetSlopePixelZ(v->x_pos, v->y_pos);
int z = GetSlopePixelZ(v->x_pos, v->y_pos);
v->z_pos -= 1;
if (v->z_pos == z) {
v->crashed_counter = 500;