diff options
author | Roman Tetelman <kevlarman@gmail.com> | 2009-10-03 13:13:20 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:34 +0000 |
commit | e99b7e92d6b584839539f1f79f9e5f6fb996e0fa (patch) | |
tree | 325f5a960ef0d57626455b26af3e220ae455a7ac /src/game/g_cmds.c | |
parent | 5fc34b0cf5ed4b235a09749d9ff95b923ae29e24 (diff) |
* fix some more credit copying issues
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index f6164ac8..163a3feb 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1848,7 +1848,7 @@ void Cmd_Class_f( gentity_t *ent ) } cost = BG_ClassCanEvolveFromTo( currentClass, newClass, - ent->client->ps.persistant[ PERS_CREDIT ], + ent->client->pers.credit, g_alienStage.integer, 0 ); if( G_RoomForClassChange( ent, newClass, infestOrigin ) ) @@ -2186,7 +2186,7 @@ void Cmd_Buy_f( gentity_t *ent ) } //can afford this? - if( BG_Weapon( weapon )->price > (short)ent->client->ps.persistant[ PERS_CREDIT ] ) + if( BG_Weapon( weapon )->price > (short)ent->client->pers.credit ) { G_TriggerMenu( ent->client->ps.clientNum, MN_H_NOFUNDS ); return; @@ -2229,7 +2229,7 @@ void Cmd_Buy_f( gentity_t *ent ) } //can afford this? - if( BG_Upgrade( upgrade )->price > (short)ent->client->ps.persistant[ PERS_CREDIT ] ) + if( BG_Upgrade( upgrade )->price > (short)ent->client->pers.credit ) { G_TriggerMenu( ent->client->ps.clientNum, MN_H_NOFUNDS ); return; @@ -2679,6 +2679,7 @@ void G_StopFollowing( gentity_t *ent ) ent->client->ps.eFlags &= ~( EF_WALLCLIMB | EF_WALLCLIMBCEILING ); ent->client->ps.viewangles[ PITCH ] = 0.0f; ent->client->ps.clientNum = ent - g_entities; + ent->client->ps.persistant[ PERS_CREDIT ] = ent->client->pers.credit; CalculateRanks( ); } |