summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-02-24 11:01:16 +0100
committerPaweł Redman <pawel.redman@gmail.com>2018-02-24 11:01:16 +0100
commit7b121f3743f1f50f89b84c44a918d1c63dba9eca (patch)
tree2db8ade0cb51c4a04af81691e2f767dbe4489f70
parentaba8db59fa380e7fb97b157840f262563b423a02 (diff)
!curse: fix some off-by-one errors.
-rw-r--r--src/game/g_admin.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index ecb53cd..ff211aa 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -10598,11 +10598,13 @@ qboolean G_admin_curse(gentity_t *ent, int skiparg)
if (G_SayArgc() < 4 + skiparg) {
ADMP(va("^3!curse: ^7info for %s^7:\n",
target->client->pers.netname));
- ADMP(va("outDamage = %f\n", curses->outDamage));
- ADMP(va("incDamage = %f\n", curses->incDamage));
+ ADMP(va("outDamage = %f\n", curses->outDamage + 1.0f));
+ ADMP(va("incDamage = %f\n", curses->incDamage + 1.0f));
ADMP(va("damageFeedback = %f\n", curses->damageFeedback));
- ADMP(va("staminaUse = %f\n", curses->staminaUse));
- ADMP(va("staminaRegen = %f\n", curses->staminaRegen));
+ ADMP(va("ffOutDamage = %f\n", curses->ffOutDamage + 1.0f));
+ ADMP(va("ffFeedback = %f\n", curses->ffFeedback));
+ ADMP(va("staminaUse = %f\n", curses->staminaUse + 1.0f));
+ ADMP(va("staminaRegen = %f\n", curses->staminaRegen + 1.0f));
return qtrue;
}
@@ -10638,7 +10640,7 @@ skip_protection:
else if (!Q_stricmp(arg_option, "damagefeedback"))
curses->damageFeedback = value;
else if (!Q_stricmp(arg_option, "ffoutdamage"))
- curses->ffOutDamage = value;
+ curses->ffOutDamage = value - 1.0f;
else if (!Q_stricmp(arg_option, "fffeedback"))
curses->ffFeedback = value;
else if (!Q_stricmp(arg_option, "staminause"))