* Increment the sprite unless it has reached the end of the animation. * @param v Vehicle to increment sprite of. * @param last Last sprite of animation. * @return true if the sprite was incremented, false if the end was reached. */
| 27 | * @return true if the sprite was incremented, false if the end was reached. |
| 28 | */ |
| 29 | static bool IncrementSprite(EffectVehicle *v, SpriteID last) |
| 30 | { |
| 31 | if (v->sprite_cache.sprite_seq.seq[0].sprite != last) { |
| 32 | v->sprite_cache.sprite_seq.seq[0].sprite++; |
| 33 | return true; |
| 34 | } else { |
| 35 | return false; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | static void ChimneySmokeInit(EffectVehicle *v) |
| 40 | { |
no outgoing calls
no test coverage detected