equal
deleted
inserted
replaced
585 } |
585 } |
586 |
586 |
587 else if (v->type == VEH_Train) { |
587 else if (v->type == VEH_Train) { |
588 v = GetFirstVehicleInChain(v); |
588 v = GetFirstVehicleInChain(v); |
589 u = v; |
589 u = v; |
590 pass = 4; // driver |
590 if (v->subtype == TS_Front_Engine) pass = 4; // driver |
591 |
591 |
592 // crash all wagons, and count passangers |
592 // crash all wagons, and count passangers |
593 BEGIN_ENUM_WAGONS(v) |
593 BEGIN_ENUM_WAGONS(v) |
594 if (v->cargo_type == CT_PASSENGERS) pass += v->cargo_count; |
594 if (v->cargo_type == CT_PASSENGERS) pass += v->cargo_count; |
595 v->vehstatus |= VS_CRASHED; |
595 v->vehstatus |= VS_CRASHED; |