water_cmd.c
changeset 1132 7378651941bf
parent 1093 e8d26c7dc42f
child 1209 a1ac96655b79
equal deleted inserted replaced
1131:21a18a6c1b4b 1132:7378651941bf
   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;