diff options
author | peter1138 <peter1138@openttd.org> | 2006-05-01 14:30:24 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-05-01 14:30:24 +0000 |
commit | 8d5d386e77020ddb02e6e8498f150077f5339ab0 (patch) | |
tree | c882a4587a39b9841380b16303683d34c98be7b0 /newgrf_engine.c | |
parent | 9482534f5e4e340f0732ad7ae54e86b4ed658981 (diff) | |
download | openttd-8d5d386e77020ddb02e6e8498f150077f5339ab0.tar.xz |
(svn r4649) - NewGRF: limit helicopter rotor animation frames to the number of sprites in the set.
Diffstat (limited to 'newgrf_engine.c')
-rw-r--r-- | newgrf_engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_engine.c b/newgrf_engine.c index 3b486a3ab..f57079fb6 100644 --- a/newgrf_engine.c +++ b/newgrf_engine.c @@ -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); } |