diff options
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 92ed0311..c69e6da4 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2098,6 +2098,7 @@ void Cmd_Deposit_f( gentity_t *ent ) if( amount <= ent->client->ps.stats[ STAT_CREDIT ] ) { ent->client->ps.stats[ STAT_CREDIT ] -= amount; + ent->client->ps.stats[ STAT_BANK ] += amount; level.bankCredits[ ent->client->ps.clientNum ] += amount; } else @@ -2153,6 +2154,7 @@ void Cmd_Withdraw_f( gentity_t *ent ) if( amount <= level.bankCredits[ ent->client->ps.clientNum ] ) { ent->client->ps.stats[ STAT_CREDIT ] += amount; + ent->client->ps.stats[ STAT_BANK ] -= amount; level.bankCredits[ ent->client->ps.clientNum ] -= amount; } else |