summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-01 14:30:24 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-01 14:30:24 +0000
commite3b84cc7f5ef76fca65b82d913fc4a4507bb240c (patch)
treec882a4587a39b9841380b16303683d34c98be7b0
parentd799c99152b604121b3cb854497533e8283ca7d1 (diff)
downloadopenttd-e3b84cc7f5ef76fca65b82d913fc4a4507bb240c.tar.xz
(svn r4649) - NewGRF: limit helicopter rotor animation frames to the number of sprites in the set.
-rw-r--r--newgrf_engine.c2
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);
}