mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-22 03:51:23 +00:00
Count down health to 100 in DM/CTF/DOM too.
This commit is contained in:
parent
ec32109571
commit
b053cc7144
1 changed files with 2 additions and 2 deletions
|
@ -658,7 +658,7 @@ void ClientTimerActions( gentity_t *ent, int msec ) {
|
|||
// count down health when over max
|
||||
// STONELANCE
|
||||
// if ( ent->health > client->ps.stats[STAT_MAX_HEALTH] ) {
|
||||
if (((!isRallyRace() && !g_gametype.integer == GT_DERBY)
|
||||
if (((!isRallyRace() && g_gametype.integer != GT_DERBY)
|
||||
|| level.startRaceTime) && ent->health > client->ps.stats[STAT_MAX_HEALTH]){
|
||||
// END
|
||||
ent->health--;
|
||||
|
@ -668,7 +668,7 @@ void ClientTimerActions( gentity_t *ent, int msec ) {
|
|||
// count down armor when over max
|
||||
// STONELANCE
|
||||
// if ( client->ps.stats[STAT_ARMOR] > client->ps.stats[STAT_MAX_HEALTH] ) {
|
||||
if (((!isRallyRace() && !g_gametype.integer == GT_DERBY) || level.startRaceTime)
|
||||
if (((!isRallyRace() && g_gametype.integer != GT_DERBY) || level.startRaceTime)
|
||||
&& client->ps.stats[STAT_ARMOR] > client->ps.stats[STAT_MAX_HEALTH]){
|
||||
// END
|
||||
client->ps.stats[STAT_ARMOR]--;
|
||||
|
|
Loading…
Reference in a new issue