(svn r9322) -Codechange: Use cargo class to count crash/flood victims

This commit is contained in:
2007-03-19 12:40:51 +00:00
parent 28aa933489
commit 457930c483
3 changed files with 4 additions and 5 deletions

View File

@@ -1369,7 +1369,7 @@ static void CrashAirplane(Vehicle *v)
InvalidateWindow(WC_VEHICLE_VIEW, v->index);
uint amt = 2;
if (v->cargo_type == CT_PASSENGERS) amt += v->cargo_count;
if (IsCargoInClass(v->cargo_type, CC_PASSENGERS)) amt += v->cargo_count;
SetDParam(0, amt);
v->cargo_count = 0;