summaryrefslogtreecommitdiff
path: root/src/game/g_ptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_ptr.c')
-rw-r--r--src/game/g_ptr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/g_ptr.c b/src/game/g_ptr.c
index 04e925ae..5344aa1d 100644
--- a/src/game/g_ptr.c
+++ b/src/game/g_ptr.c
@@ -61,8 +61,11 @@ void G_UpdatePTRConnection( gclient_t *client )
{
if( client && client->pers.connection )
{
- client->pers.connection->clientTeam = client->ps.stats[ STAT_PTEAM ];
- client->pers.connection->clientCredit = client->ps.persistant[ PERS_CREDIT ];
+ client->pers.connection->clientTeam = client->pers.teamSelection;
+ if( client->pers.teamSelection == PTE_NONE )
+ client->pers.connection->clientCredit = client->pers.savedCredit;
+ else
+ client->pers.connection->clientCredit = client->ps.persistant[ PERS_CREDIT ];
}
}