forked from mirror/OpenTTD
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "water_map.h"
|
||||
#include "yapf/yapf.h"
|
||||
#include "date.h"
|
||||
#include "newgrf_sound.h"
|
||||
|
||||
#include "table/bridge_land.h"
|
||||
|
||||
@@ -1361,8 +1362,9 @@ static uint32 VehicleEnter_TunnelBridge(Vehicle *v, TileIndex tile, int x, int y
|
||||
|
||||
if (v->u.rail.track != 0x40 && dir == vdir) {
|
||||
if (IsFrontEngine(v) && fc == _tunnel_fractcoord_1[dir]) {
|
||||
if (v->spritenum < 4)
|
||||
if (!PlayVehicleSound(v, VSE_TUNNEL) && v->spritenum < 4) {
|
||||
SndPlayVehicleFx(SND_05_TRAIN_THROUGH_TUNNEL, v);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
if (fc == _tunnel_fractcoord_2[dir]) {
|
||||
|
Reference in New Issue
Block a user