mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'master' into ring-respawn-fuck
This commit is contained in:
commit
ba7b2f3fc9
2 changed files with 20 additions and 4 deletions
|
|
@ -152,7 +152,11 @@ set(SRB2_CONFIG_USEASM OFF CACHE BOOL
|
||||||
set(SRB2_CONFIG_YASM OFF CACHE BOOL
|
set(SRB2_CONFIG_YASM OFF CACHE BOOL
|
||||||
"Use YASM in place of NASM.")
|
"Use YASM in place of NASM.")
|
||||||
set(SRB2_CONFIG_DEV_BUILD OFF CACHE BOOL
|
set(SRB2_CONFIG_DEV_BUILD OFF CACHE BOOL
|
||||||
"Compile a development build of SRB2Kart.")
|
"Compile a development build of Dr Robotnik's Ring Racers.")
|
||||||
|
set(SRB2_CONFIG_TESTERS OFF CACHE BOOL
|
||||||
|
"Compile a build for testers.")
|
||||||
|
set(SRB2_CONFIG_HOSTTESTERS OFF CACHE BOOL
|
||||||
|
"Compile a build to host netgames for testers builds.")
|
||||||
|
|
||||||
add_subdirectory(blua)
|
add_subdirectory(blua)
|
||||||
|
|
||||||
|
|
@ -236,7 +240,7 @@ if(${SRB2_CONFIG_HAVE_ZLIB})
|
||||||
set(SRB2_HAVE_ZLIB ON)
|
set(SRB2_HAVE_ZLIB ON)
|
||||||
target_compile_definitions(SRB2SDL2 PRIVATE -DHAVE_ZLIB)
|
target_compile_definitions(SRB2SDL2 PRIVATE -DHAVE_ZLIB)
|
||||||
else()
|
else()
|
||||||
message(WARNING "You have specified that ZLIB is available but it was not found. SRB2Kart may not compile correctly.")
|
message(WARNING "You have specified that ZLIB is available but it was not found. Dr Robotnik's Ring Racers may not compile correctly.")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -259,7 +263,7 @@ if(${SRB2_CONFIG_HAVE_PNG} AND ${SRB2_CONFIG_HAVE_ZLIB})
|
||||||
target_compile_definitions(SRB2SDL2 PRIVATE -D_LARGEFILE64_SOURCE)
|
target_compile_definitions(SRB2SDL2 PRIVATE -D_LARGEFILE64_SOURCE)
|
||||||
target_sources(SRB2SDL2 PRIVATE apng.c)
|
target_sources(SRB2SDL2 PRIVATE apng.c)
|
||||||
else()
|
else()
|
||||||
message(WARNING "You have specified that PNG is available but it was not found. SRB2Kart may not compile correctly.")
|
message(WARNING "You have specified that PNG is available but it was not found. Dr Robotnik's Ring Racers may not compile correctly.")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -485,6 +489,12 @@ target_compile_definitions(SRB2SDL2 PRIVATE -DCMAKECONFIG)
|
||||||
if(SRB2_CONFIG_DEBUGMODE)
|
if(SRB2_CONFIG_DEBUGMODE)
|
||||||
target_compile_definitions(SRB2SDL2 PRIVATE -DZDEBUG -DPARANOIA -DRANGECHECK -DPACKETDROP)
|
target_compile_definitions(SRB2SDL2 PRIVATE -DZDEBUG -DPARANOIA -DRANGECHECK -DPACKETDROP)
|
||||||
endif()
|
endif()
|
||||||
|
if(SRB2_CONFIG_TESTERS)
|
||||||
|
target_compile_definitions(SRB2SDL2 PRIVATE -DTESTERS)
|
||||||
|
endif()
|
||||||
|
if(SRB2_CONFIG_HOSTTESTERS)
|
||||||
|
target_compile_definitions(SRB2SDL2 PRIVATE -DHOSTTESTERS)
|
||||||
|
endif()
|
||||||
if(SRB2_CONFIG_MOBJCONSISTANCY)
|
if(SRB2_CONFIG_MOBJCONSISTANCY)
|
||||||
target_compile_definitions(SRB2SDL2 PRIVATE -DMOBJCONSISTANCY)
|
target_compile_definitions(SRB2SDL2 PRIVATE -DMOBJCONSISTANCY)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -521,7 +521,7 @@ static void P_NetUnArchivePlayers(void)
|
||||||
players[i].skincolor = READUINT8(save_p);
|
players[i].skincolor = READUINT8(save_p);
|
||||||
players[i].skin = READINT32(save_p);
|
players[i].skin = READINT32(save_p);
|
||||||
|
|
||||||
for (j = 0; i < MAXAVAILABILITY; j++)
|
for (j = 0; j < MAXAVAILABILITY; j++)
|
||||||
{
|
{
|
||||||
players[i].availabilities[j] = READUINT8(save_p);
|
players[i].availabilities[j] = READUINT8(save_p);
|
||||||
}
|
}
|
||||||
|
|
@ -4867,6 +4867,7 @@ static inline boolean P_NetUnArchiveMisc(boolean reloading)
|
||||||
{
|
{
|
||||||
size_t i, j;
|
size_t i, j;
|
||||||
size_t numTasks;
|
size_t numTasks;
|
||||||
|
UINT8 *old_save_p;
|
||||||
|
|
||||||
if (READUINT32(save_p) != ARCHIVEBLOCK_MISC)
|
if (READUINT32(save_p) != ARCHIVEBLOCK_MISC)
|
||||||
I_Error("Bad $$$.sav at archive block Misc");
|
I_Error("Bad $$$.sav at archive block Misc");
|
||||||
|
|
@ -4909,12 +4910,17 @@ static inline boolean P_NetUnArchiveMisc(boolean reloading)
|
||||||
|
|
||||||
encoremode = (boolean)READUINT8(save_p);
|
encoremode = (boolean)READUINT8(save_p);
|
||||||
|
|
||||||
|
// FIXME: save_p should not be global!!!
|
||||||
|
old_save_p = save_p;
|
||||||
|
|
||||||
if (!P_LoadLevel(true, reloading))
|
if (!P_LoadLevel(true, reloading))
|
||||||
{
|
{
|
||||||
CONS_Alert(CONS_ERROR, M_GetText("Can't load the level!\n"));
|
CONS_Alert(CONS_ERROR, M_GetText("Can't load the level!\n"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
save_p = old_save_p;
|
||||||
|
|
||||||
// get the time
|
// get the time
|
||||||
leveltime = READUINT32(save_p);
|
leveltime = READUINT32(save_p);
|
||||||
lastmap = READINT16(save_p);
|
lastmap = READINT16(save_p);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue