diff options
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index 313927c..6a8bcc5 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1737,6 +1737,7 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles vec3_t up = { 0.0f, 0.0f, 1.0f }; int maxAmmo, maxClips; weapon_t weapon; + adminRangeBoosts_t savedRanges; index = ent - g_entities; @@ -1818,6 +1819,8 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles for( i = 0; i < MAX_PERSISTANT; i++ ) persistant[ i ] = client->ps.persistant[ i ]; + memcpy( &savedRanges, &client->newRange, sizeof( adminRangeBoosts_t ) ); + eventSequence = client->ps.eventSequence; memset( client, 0, sizeof( *client ) ); @@ -1826,6 +1829,8 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles client->ps.ping = savedPing; client->lastkilled_client = -1; + memcpy( &client->newRange, &savedRanges, sizeof( adminRangeBoosts_t ) ); + for( i = 0; i < MAX_PERSISTANT; i++ ) client->ps.persistant[ i ] = persistant[ i ]; |