From 8d5d386e77020ddb02e6e8498f150077f5339ab0 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 1 May 2006 14:30:24 +0000 Subject: (svn r4649) - NewGRF: limit helicopter rotor animation frames to the number of sprites in the set. --- newgrf_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3-70-g09d2