1
0
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:
2006-05-01 14:30:24 +00:00
parent 9482534f5e
commit 8d5d386e77

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);
}