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