Skip to content

Commit

Permalink
[TD] Fix loading of zounds.mix.
Browse files Browse the repository at this point in the history
Loading was previously gated behind a check for Special.IsJuvenile which isn't set until later in the init process.
  • Loading branch information
OmniBlade committed Jun 24, 2024
1 parent 5bff786 commit cf4a304
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tiberiandawn/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ bool Init_Game(int, char*[])
}
CCDebugString("C&C95 - About to register SOUNDS.MIX\n");
new MFCD("SOUNDS.MIX"); // Cached.
new MFCD("ZOUNDS.MIX"); // Cached.

/*
** Find and process any rules for this game.
Expand Down Expand Up @@ -511,10 +512,7 @@ bool Init_Game(int, char*[])
MFCD::Cache("CONQUER.MIX");
if (SampleType != 0 && !Debug_Quiet) {
MFCD::Cache("SOUNDS.MIX");
if (Special.IsJuvenile) {
new MFCD("ZOUNDS.MIX"); // Cached.
MFCD::Cache("ZOUNDS.MIX");
}
MFCD::Cache("ZOUNDS.MIX");
}
}
Call_Back();
Expand Down

0 comments on commit cf4a304

Please sign in to comment.