Add road vehicle state to UpdateViewport()->GetImage() var whitelist.

Minor refactoring of var check.
This commit is contained in:
Jonathan G Rennison
2016-09-09 23:44:13 +01:00
parent 0c1f59807d
commit d733955d33
5 changed files with 28 additions and 12 deletions

View File

@@ -1025,6 +1025,7 @@ static bool RoadVehLeaveDepot(RoadVehicle *v, bool first)
}
v->vehstatus &= ~VS_HIDDEN;
v->cur_image_valid_dir = INVALID_DIR;
v->state = tdir;
v->frame = RVC_DEPOT_START_FRAME;
@@ -1306,6 +1307,7 @@ again:
}
if (!HasBit(r, VETS_ENTERED_WORMHOLE)) {
v->cur_image_valid_dir = INVALID_DIR;
v->tile = tile;
v->state = (byte)dir;
v->frame = start_frame;
@@ -1372,6 +1374,7 @@ again:
return false;
}
v->cur_image_valid_dir = INVALID_DIR;
v->state = dir;
v->frame = turn_around_start_frame;