mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2025-02-17 01:31:07 +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;
|
int w;
|
||||||
|
|
||||||
// Q3Rally Code Start
|
// Q3Rally Code Start
|
||||||
if (isRallyNonDMRace()){
|
if (isRallyNonDMRace() || cgs.gametype == GT_DERBY){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Q3Rally Code END
|
// Q3Rally Code END
|
||||||
|
|
|
@ -36,6 +36,14 @@ void CG_CheckAmmo( void ) {
|
||||||
int previous;
|
int previous;
|
||||||
int weapons;
|
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
|
// see about how many seconds of ammo we have remaining
|
||||||
weapons = cg.snap->ps.stats[ STAT_WEAPONS ];
|
weapons = cg.snap->ps.stats[ STAT_WEAPONS ];
|
||||||
total = 0;
|
total = 0;
|
||||||
|
|
Loading…
Reference in a new issue