mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-15 18:49:10 +00:00
(svn r4649) - NewGRF: limit helicopter rotor animation frames to the number of sprites in the set.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user