From 744b62bc248a5cdf9608de2f350bd2b490f11d67 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 6 Apr 2020 21:08:11 +0200 Subject: Minor /share and /donate fixes. --- src/game/g_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index d19bb02..34185b2 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -4962,7 +4962,7 @@ void Cmd_Share_f( gentity_t *ent ) //check arg2 is a number for( i = 0; arg2[ i ]; i++ ) { - if( arg2[ i ] < '0' || arg2[ i ] > '9' ) + if( ( arg2[ i ] < '0' || arg2[ i ] > '9' ) && arg2[ i ] != '.' ) { trap_SendServerCommand( ent-g_entities, "print \"usage: share [name|slot#] [amount]\n\"" ); @@ -5171,7 +5171,7 @@ void Cmd_Donate_f( gentity_t *ent ) { ent->client->pers.netname, totals[ i ] / EVO_TO_CREDS_RATE ) ); trap_SendServerCommand( ent-g_entities, va( "print \"Donated %.3f evo(s) to the cause.\n\"", - total-value / EVO_TO_CREDS_RATE ) ); + ( total - value ) / EVO_TO_CREDS_RATE ) ); } else { -- cgit