From 9048507722ced93b2ce834ebc85714f87e8ab0d5 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 14 Dec 2023 16:31:45 -0600 Subject: [PATCH] Don't spawn with machinegun in Demolition Derby Fixes https://github.com/Q3Rally-Team/q3rally/issues/25 --- engine/code/game/g_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/code/game/g_client.c b/engine/code/game/g_client.c index aa89341c..05a1e470 100644 --- a/engine/code/game/g_client.c +++ b/engine/code/game/g_client.c @@ -1512,7 +1512,7 @@ void ClientSpawn(gentity_t *ent) { client->ps.clientNum = index; // dont give machinegun on spawn in races - if (!isRallyRace()/* TEMP DERBY && g_gametype.integer != GT_DERBY */){ + if (!isRallyRace() && g_gametype.integer != GT_DERBY ){ client->ps.stats[STAT_WEAPONS] = ( 1 << WP_MACHINEGUN ); if ( g_gametype.integer == GT_TEAM ) { @@ -1642,7 +1642,7 @@ void ClientSpawn(gentity_t *ent) { G_KillBox(ent); // force the base weapon up // STONELANCE - if (!isRallyRace()/* TEMP DERBY && g_gametype.integer != GT_DERBY*/){ + if (!isRallyRace() && g_gametype.integer != GT_DERBY ){ client->ps.weapon = WP_MACHINEGUN; } else if (!isRallyNonDMRace()/*TEMP DERBY && g_gametype.integer != GT_DERBY*/){