| 221 | } |
| 222 | |
| 223 | int Game_Vehicle::GetOrigSpriteIndex() const { |
| 224 | if (!data()->orig_sprite_name.empty()) { |
| 225 | return data()->orig_sprite_id; |
| 226 | } |
| 227 | switch (GetVehicleType()) { |
| 228 | case Boat: |
| 229 | return lcf::Data::system.boat_index; |
| 230 | case Ship: |
| 231 | return lcf::Data::system.ship_index; |
| 232 | case Airship: |
| 233 | return lcf::Data::system.airship_index; |
| 234 | default: |
| 235 | break; |
| 236 | } |
| 237 | return 0; |
| 238 | } |
no test coverage detected