mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-23 04:12:02 +00:00
Disable permanent 'out of ammo' message in Derby
In Derby, weapons don't spawn and player's only start with Gauntlet.
This commit is contained in:
parent
89c4886605
commit
4745f36e47
2 changed files with 9 additions and 1 deletions
|
@ -2903,7 +2903,7 @@ static void CG_DrawAmmoWarning( void ) {
|
|||
int w;
|
||||
|
||||
// Q3Rally Code Start
|
||||
if (isRallyNonDMRace()){
|
||||
if (isRallyNonDMRace() || cgs.gametype == GT_DERBY){
|
||||
return;
|
||||
}
|
||||
// Q3Rally Code END
|
||||
|
|
|
@ -36,6 +36,14 @@ void CG_CheckAmmo( void ) {
|
|||
int previous;
|
||||
int weapons;
|
||||
|
||||
// Q3Rally Code Start
|
||||
if ( cg.snap->ps.weapon == WP_NONE ||
|
||||
cg.snap->ps.weapon == WP_GAUNTLET ) {
|
||||
cg.lowAmmoWarning = 0;
|
||||
return;
|
||||
}
|
||||
// Q3Rally Code END
|
||||
|
||||
// see about how many seconds of ammo we have remaining
|
||||
weapons = cg.snap->ps.stats[ STAT_WEAPONS ];
|
||||
total = 0;
|
||||
|
|
Loading…
Reference in a new issue