MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Crash

Method Crash

src/aircraft_cmd.cpp:1336–1342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1334
1335
1336uint Aircraft::Crash(bool flooded)
1337{
1338 uint victims = Vehicle::Crash(flooded) + 2; // pilots
1339 this->crashed_counter = flooded ? 9000 : 0; // max 10000, disappear pretty fast when flooded
1340
1341 return victims;
1342}
1343
1344/**
1345 * Bring the aircraft in a crashed state, create the explosion animation, and create a news item about the crash.

Callers 1

CrashAirplaneFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected