mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-12 14:16:29 +00:00
Change mapmusrng to UINT8
This commit is contained in:
parent
2c162b50a3
commit
b76557045f
4 changed files with 5 additions and 5 deletions
|
|
@ -42,7 +42,7 @@ extern char mapmusname[7];
|
|||
extern UINT16 mapmusflags;
|
||||
extern UINT32 mapmusposition;
|
||||
extern UINT32 mapmusresume;
|
||||
extern UINT32 mapmusrng;
|
||||
extern UINT8 mapmusrng;
|
||||
#define MUSIC_TRACKMASK 0x0FFF // ----************
|
||||
#define MUSIC_RELOADRESET 0x8000 // *---------------
|
||||
#define MUSIC_FORCERESET 0x4000 // -*--------------
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ char mapmusname[7]; // Music name
|
|||
UINT16 mapmusflags; // Track and reset bit
|
||||
UINT32 mapmusposition; // Position to jump to
|
||||
UINT32 mapmusresume;
|
||||
UINT32 mapmusrng; // Random selection result
|
||||
UINT8 mapmusrng; // Random selection result
|
||||
|
||||
INT16 gamemap = 1;
|
||||
UINT32 maptol;
|
||||
|
|
|
|||
|
|
@ -433,7 +433,7 @@ int LUA_WriteGlobals(lua_State *L, const char *word)
|
|||
else if (fastcmp(word, "mapmusflags"))
|
||||
mapmusflags = (UINT16)luaL_checkinteger(L, 2);
|
||||
else if (fastcmp(word, "mapmusrng"))
|
||||
mapmusrng = (UINT32)luaL_checkinteger(L, 2);
|
||||
mapmusrng = (UINT8)luaL_checkinteger(L, 2);
|
||||
// SRB2Kart
|
||||
else if (fastcmp(word,"racecountdown"))
|
||||
racecountdown = (tic_t)luaL_checkinteger(L, 2);
|
||||
|
|
|
|||
|
|
@ -4882,7 +4882,7 @@ static void P_NetArchiveMisc(savebuffer_t *save, boolean resending)
|
|||
|
||||
WRITEUINT8(save->p, encoremode);
|
||||
|
||||
WRITEUINT32(save->p, mapmusrng);
|
||||
WRITEUINT8(save->p, mapmusrng);
|
||||
|
||||
WRITEUINT32(save->p, leveltime);
|
||||
WRITEINT16(save->p, lastmap);
|
||||
|
|
@ -5048,7 +5048,7 @@ static inline boolean P_NetUnArchiveMisc(savebuffer_t *save, boolean reloading)
|
|||
|
||||
encoremode = (boolean)READUINT8(save->p);
|
||||
|
||||
mapmusrng = READUINT32(save->p);
|
||||
mapmusrng = READUINT8(save->p);
|
||||
|
||||
if (!P_LoadLevel(true, reloading))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue