Cache sprite sequence bounds for vehicles

This commit is contained in:
Jonathan G Rennison
2018-01-19 19:13:01 +00:00
parent 5b226adc75
commit d730cfd51d
12 changed files with 71 additions and 41 deletions

View File

@@ -1270,6 +1270,7 @@ bool LoadOldVehicle(LoadgameState *ls, int num)
sprite += 1385; // rotor or disaster-related vehicles
}
v->sprite_seq.seq[0].sprite = sprite;
v->UpdateSpriteSeqBound();
switch (v->type) {
case VEH_TRAIN: {