port: give Night Vision at respawn in Perfect Darkness Combat

This commit is contained in:
Jonaeru committed 2024-03-17 15:12:26 +09:00
1 parent c9f880e427
commit 80faefbaf6
1 file changed
+4
+4
View File
@@ -1100,6 +1100,10 @@ void playerSpawn(void)
} }
} else { } else {
#ifndef PLATFORM_N64 #ifndef PLATFORM_N64
if (cheatIsActive(CHEAT_PERFECTDARKNESS)) {
invGiveSingleWeapon(WEAPON_NIGHTVISION);
}
if ((g_MpSetup.options & MPOPTION_SPAWNWITHWEAPON) if ((g_MpSetup.options & MPOPTION_SPAWNWITHWEAPON)
&& g_MpSetup.weapons[0] != MPWEAPON_NONE && g_MpSetup.weapons[0] != MPWEAPON_NONE
&& g_MpSetup.weapons[0] != MPWEAPON_DISABLED) { && g_MpSetup.weapons[0] != MPWEAPON_DISABLED) {