Skip to content

Commit f3ec6fc

Browse files
committed
Merge remote-tracking branch 'master/master'
2 parents d729ce9 + d1cb662 commit f3ec6fc

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
# along with this program; if not, see <http://www.gnu.org/licenses/>.
1717
#============================================================================
1818

19-
cmake_minimum_required(VERSION 3.1)
19+
# The <min>...<policy_max> syntax is needed to remain compatible with 3.1, but also newer versions that dropped 3.1 compatibility
20+
# More info here: https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html
21+
cmake_minimum_required(VERSION 3.1...3.31)
2022
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
2123

2224
set(InOpenJK ON)

code/qcommon/common.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,12 +1093,12 @@ void Com_Init( char *commandLine ) {
10931093
//Swap_Init ();
10941094
Cbuf_Init ();
10951095

1096-
Com_InitZoneMemoryVars();
1097-
Cmd_Init ();
1098-
10991096
// override anything from the config files with command line args
11001097
Com_StartupVariable( NULL );
11011098

1099+
Com_InitZoneMemoryVars();
1100+
Cmd_Init ();
1101+
11021102
// done early so bind command exists
11031103
CL_InitKeyCommands();
11041104

@@ -1194,6 +1194,7 @@ void Com_Init( char *commandLine ) {
11941194
Cbuf_AddText ("cinematic openinglogos\n");
11951195
}
11961196
}
1197+
CL_StartHunkUsers();
11971198
com_fullyInitialized = qtrue;
11981199
Com_Printf ("--- Common Initialization Complete ---\n");
11991200

code/server/sv_savegame.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,11 @@ static void SG_WriteScreenshot(qboolean qbAutosave, const char *psMapName)
10621062

10631063
if (!pbRawScreenShot)
10641064
{
1065+
if (byBlank != NULL)
1066+
{
1067+
delete[] byBlank;
1068+
}
1069+
10651070
const size_t bySize = SG_SCR_WIDTH * SG_SCR_HEIGHT * 3;
10661071

10671072
byBlank = new byte[bySize];

codemp/rd-rend2/tr_weather.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,8 +1141,8 @@ void RB_SurfaceWeather( srfWeather_t *surf )
11411141
{
11421142
for (int x = -1; x <= 1; ++x, ++currentIndex)
11431143
{
1144-
chunkIndex = (int(centerZoneOffsetX + numMinZonesX) + x + 1) % 3;
1145-
chunkIndex += (int(centerZoneOffsetY + numMinZonesY) + y + 1) % 3 * 3;
1144+
chunkIndex = ((int(centerZoneOffsetX + numMinZonesX) + x + 1) % 3 + 3) % 3;
1145+
chunkIndex += (((int(centerZoneOffsetY + numMinZonesY) + y + 1) % 3 + 3) % 3) * 3;
11461146
VectorSet2(
11471147
zoneOffsets[chunkIndex],
11481148
x,

0 commit comments

Comments
 (0)