From 7b121f3743f1f50f89b84c44a918d1c63dba9eca Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 24 Feb 2018 11:01:16 +0100 Subject: !curse: fix some off-by-one errors. --- src/game/g_admin.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/game') 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")) -- cgit