make PHOBOS_BUILD a compile flag

pass PHOBOS_BUILD=1 to build
This commit is contained in:
alufolie91 committed 2026-09-03 19:30:55 +02:00
1 parent 4c3fa7d826
commit efc0681e01
4 files changed
+14 -6

No files matched your search

+7
View File
@@ -257,6 +257,9 @@ set(SRB2_CONFIG_SATURNJOIN ON CACHE BOOL
set(SRB2_CONFIG_SCREENFBO ON CACHE BOOL
"Enable hardware renderer (OpenGL) FBO downsampling support")
set(SRB2_CONFIG_PHOBOS ON CACHE BOOL
" Compile the Phobos client. Which contains things not compatible with vanilla, such as raised skinlimits, 32 player support, bugfixes, etc.")
if(${SRB2_CONFIG_DEDICATED})
set(SRB2_CONFIG_HAVE_GME NO)
set(SRB2_CONFIG_HAVE_OPENMPT NO)
@@ -583,6 +586,10 @@ if(${SRB2_CONFIG_SATURNJOIN})
add_definitions(-DDOSATURNJOIN)
endif()
if(${SRB2_CONFIG_HWRENDER} AND ${SRB2_CONFIG_SCREENFBO})
add_definitions(-DPHOBOS_BUILD)
endif()
# Targets
# Compatibility flag with later versions of GCC
+4
View File
@@ -65,6 +65,10 @@
# DEBUGMODE=1 - Enable various debugging capabilities.
# Also disables optimizations.
#
# PHOBOS_BUILD=1 - Compile the Phobos client.
# Contains things not compatible with vanilla.
# such as raised skinlimits, 32 player support, bugfixes, etc.
#
# Development flags:
#
# VALGRIND=1 - Enable Valgrind memory debugging support.
+1
View File
@@ -9,6 +9,7 @@ passthru_opts+=\
HAVE_DISCORDRPC DEVELOP\
NOHOLEPUNCH\
HAVE_IPV6\
PHOBOS_BUILD\
# build with debugging information
ifdef DEBUGMODE
+2 -6
View File
@@ -611,16 +611,12 @@ extern const char *compdate, *comptime, *comprevision, *compbranch;
// None of these that are disabled in the normal build are guaranteed to work perfectly
// Compile them at your own risk!
// TODO: make this a compile flag!
// define to enable fixes and features that are not vanilla compatible
//#define PHOBOS_BUILD
#ifdef PHOBOS_BUILD
// compiler cries otherwise :chaosleep:
#undef MAXPLAYERS
// we want 32 players yesss
#undef MAXPLAYERS
#define MAXPLAYERS 32
// overwrite some of those
// when not compiling in vanilla compat mode
#define SATURNJOIN