Add game event for train crash

This commit is contained in:
Jonathan G Rennison
2019-06-08 16:10:31 +01:00
parent 49dee941fb
commit c7a9950269
3 changed files with 4 additions and 0 deletions

View File

@@ -3540,6 +3540,8 @@ uint Train::Crash(bool flooded)
HideFillingPercent(&this->fill_percent_te_id);
}
RegisterGameEvents(GEF_TRAIN_CRASH);
pass += this->GroundVehicleBase::Crash(flooded);
this->crash_anim_pos = flooded ? 4000 : 1; // max 4440, disappear pretty fast when flooded