mirror of https://github.com/OpenTTD/OpenTTD
NewGRF Action 11 should be handled in both INIT and ACTIVATION stages for sounds to be loaded. Additionally the Action 0 feature test failed due to offsets involved.pull/14132/head
parent
b9667ec3d1
commit
7bbf380931
|
@ -26,6 +26,7 @@
|
|||
static ChangeInfoResult SoundEffectChangeInfo(uint first, uint last, int prop, ByteReader &buf)
|
||||
{
|
||||
ChangeInfoResult ret = CIR_SUCCESS;
|
||||
if (first == last) return ret;
|
||||
|
||||
if (_cur_gps.grffile->sound_offset == 0) {
|
||||
GrfMsg(1, "SoundEffectChangeInfo: No effects defined, skipping");
|
||||
|
|
|
@ -175,6 +175,6 @@ static void SkipAct11(ByteReader &buf)
|
|||
template <> void GrfActionHandler<0x11>::FileScan(ByteReader &buf) { SkipAct11(buf); }
|
||||
template <> void GrfActionHandler<0x11>::SafetyScan(ByteReader &buf) { GRFUnsafe(buf); }
|
||||
template <> void GrfActionHandler<0x11>::LabelScan(ByteReader &buf) { SkipAct11(buf); }
|
||||
template <> void GrfActionHandler<0x11>::Init(ByteReader &buf) { SkipAct11(buf); }
|
||||
template <> void GrfActionHandler<0x11>::Init(ByteReader &buf) { GRFSound(buf); }
|
||||
template <> void GrfActionHandler<0x11>::Reserve(ByteReader &buf) { SkipAct11(buf); }
|
||||
template <> void GrfActionHandler<0x11>::Activation(ByteReader &buf) { GRFSound(buf); }
|
||||
|
|
Loading…
Reference in New Issue