(svn r27507) -Add: [NewGRF] Allow custom sound IDs in RV property 0x12, ship property 0x10 and aircraft property 0x12.
This commit is contained in:
@@ -1402,7 +1402,7 @@ static ChangeInfoResult RoadVehicleChangeInfo(uint engine, int numinfo, int prop
|
||||
break;
|
||||
|
||||
case 0x12: // SFX
|
||||
rvi->sfx = buf->ReadByte();
|
||||
rvi->sfx = GetNewGRFSoundID(_cur.grffile, buf->ReadByte());
|
||||
break;
|
||||
|
||||
case PROP_ROADVEH_POWER: // Power in units of 10 HP.
|
||||
@@ -1590,7 +1590,7 @@ static ChangeInfoResult ShipVehicleChangeInfo(uint engine, int numinfo, int prop
|
||||
break;
|
||||
|
||||
case 0x10: // SFX
|
||||
svi->sfx = buf->ReadByte();
|
||||
svi->sfx = GetNewGRFSoundID(_cur.grffile, buf->ReadByte());
|
||||
break;
|
||||
|
||||
case 0x11: { // Cargoes available for refitting
|
||||
@@ -1758,7 +1758,7 @@ static ChangeInfoResult AircraftVehicleChangeInfo(uint engine, int numinfo, int
|
||||
break;
|
||||
|
||||
case 0x12: // SFX
|
||||
avi->sfx = buf->ReadByte();
|
||||
avi->sfx = GetNewGRFSoundID(_cur.grffile, buf->ReadByte());
|
||||
break;
|
||||
|
||||
case 0x13: { // Cargoes available for refitting
|
||||
|
Reference in New Issue
Block a user