(svn r4649) - NewGRF: limit helicopter rotor animation frames to the number of sprites in the set.

This commit is contained in:
peter1138 2006-05-01 14:30:24 +00:00
parent 9482534f5e
commit 8d5d386e77
1 changed files with 1 additions and 1 deletions

View File

@ -729,7 +729,7 @@ SpriteID GetRotorOverrideSprite(EngineID engine, const Vehicle *v)
if (v == NULL) return group->g.result.sprite;
return group->g.result.sprite + v->next->next->u.air.state;
return group->g.result.sprite + (v->next->next->u.air.state % group->g.result.num_sprites);
}