Restore machinegun in non-race gametypes

The change to have gauntlet in race had no effect as gauntlet is
removed a few lines below.

See commit b9c6fc91af.
This commit is contained in:
Zack Middleton 2023-06-06 02:39:58 -05:00
parent b1a0437218
commit c37b8b8f52

View file

@ -1511,9 +1511,8 @@ 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 ( g_gametype.integer == GT_RACING || g_gametype.integer == GT_TEAM_RACING ) {
client->ps.stats[STAT_WEAPONS] = ( 1 << WP_GAUNTLET );
if (!isRallyRace()/* TEMP DERBY && g_gametype.integer != GT_DERBY */){
client->ps.stats[STAT_WEAPONS] = ( 1 << WP_MACHINEGUN );
if ( g_gametype.integer == GT_TEAM ) {
client->ps.ammo[WP_MACHINEGUN] = 50;