- fixed startup and sound issues with Redneck Rampage.

This commit is contained in:
Christoph Oelckers 2019-11-02 18:28:50 +01:00
parent 63d4fc1e1b
commit 395ba5541c
2 changed files with 2 additions and 2 deletions

View file

@ -124,7 +124,7 @@ enum
GAMEFLAG_DUKEBETA = 0x00000060, // includes 0x20 since it's a shareware beta
GAMEFLAG_FURY = 0x00000080,
GAMEFLAG_RR = 0x00000100,
GAMEFLAG_RRRA = 0x00000300,
GAMEFLAG_RRRA = 0x00000200,
GAMEFLAG_BLOOD = 0x00000400,
GAMEFLAG_SW = 0x00000800,
GAMEFLAG_STANDALONE = 0x00001000,

View file

@ -441,7 +441,7 @@ int32_t S_LoadSound(int num)
return 0;
}
int32_t l = fp.Tell();
int32_t l = fp.GetLength();
g_soundlocks[num] = 200;
snd.siz = l;
cacheAllocateBlock((intptr_t *)&snd.ptr, l, &g_soundlocks[num]);