| 185 | } |
| 186 | |
| 187 | void GetRotorImage(const Aircraft *v, EngineImageType image_type, VehicleSpriteSeq *result) |
| 188 | { |
| 189 | assert(v->subtype == AIR_HELICOPTER); |
| 190 | |
| 191 | const Aircraft *w = v->Next()->Next(); |
| 192 | if (IsCustomVehicleSpriteNum(v->spritenum)) { |
| 193 | GetCustomRotorSprite(v, image_type, result); |
| 194 | if (result->IsValid()) return; |
| 195 | } |
| 196 | |
| 197 | /* Return standard rotor sprites if there are no custom sprites for this helicopter */ |
| 198 | result->Set(SPR_ROTOR_STOPPED + w->state); |
| 199 | } |
| 200 | |
| 201 | static void GetAircraftIcon(EngineID engine, EngineImageType image_type, VehicleSpriteSeq *result) |
| 202 | { |
no test coverage detected