(svn r21879) -Codechange: reset vehicle's GOINGUP/DOWN bits when it crashes

This commit is contained in:
smatz
2011-01-21 16:20:55 +00:00
parent 46dfdfd72b
commit e308c348f0
3 changed files with 17 additions and 2 deletions

View File

@@ -2780,7 +2780,7 @@ uint Train::Crash(bool flooded)
HideFillingPercent(&this->fill_percent_te_id);
}
pass += Vehicle::Crash(flooded);
pass += this->GroundVehicleBase::Crash(flooded);
this->crash_anim_pos = flooded ? 4000 : 1; // max 4440, disappear pretty fast when flooded
return pass;