Changeset - r21582:8d9cf2326ebc
[Not reviewed]
master
0 1 0
rubidium - 10 years ago 2014-07-27 18:16:03
rubidium@openttd.org
(svn r26706) -Fix [FS#6015] (r20644): wrong breakdown sound was played for ships
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -1206,9 +1206,10 @@ bool Vehicle::HandleBreakdown()
 
				this->cur_speed = 0;
 

	
 
				if (!PlayVehicleSound(this, VSE_BREAKDOWN)) {
 
					bool train_or_ship = this->type == VEH_TRAIN || this->type == VEH_SHIP;
 
					SndPlayVehicleFx((_settings_game.game_creation.landscape != LT_TOYLAND) ?
 
						(this->type == VEH_TRAIN ? SND_10_TRAIN_BREAKDOWN : SND_0F_VEHICLE_BREAKDOWN) :
 
						(this->type == VEH_TRAIN ? SND_3A_COMEDY_BREAKDOWN_2 : SND_35_COMEDY_BREAKDOWN), this);
 
						(train_or_ship ? SND_10_TRAIN_BREAKDOWN : SND_0F_VEHICLE_BREAKDOWN) :
 
						(train_or_ship ? SND_3A_COMEDY_BREAKDOWN_2 : SND_35_COMEDY_BREAKDOWN), this);
 
				}
 

	
 
				if (!(this->vehstatus & VS_HIDDEN) && !HasBit(EngInfo(this->engine_type)->misc_flags, EF_NO_BREAKDOWN_SMOKE)) {
0 comments (0 inline, 0 general)