diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-02-23 20:43:53 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-02-23 22:14:16 +0100 |
commit | 50d8779208632d2cc23be36e144b0297b0c02d2b (patch) | |
tree | 9dd0dc41c4545a0be46c2612326ce351912e837b /src/game/g_client.c | |
parent | 4e7cea5faf3470e1cd1bf71eda5ad2999e82a822 (diff) |
Add !curse with some basic features.
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index 78e1c4f..6e941f5 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1955,6 +1955,7 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles int i; clientPersistant_t saved; clientSession_t savedSess; + adminCurses_t savedCurses; int persistant[ MAX_PERSISTANT ]; gentity_t *spawnPoint = NULL; int flags; @@ -2046,6 +2047,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( &savedCurses, &client->curses, sizeof( adminCurses_t ) ); + eventSequence = client->ps.eventSequence; memset( client, 0, sizeof( *client ) ); @@ -2053,6 +2056,7 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles client->sess = savedSess; client->ps.ping = savedPing; client->lastkilled_client = -1; + memcpy( &client->curses, &savedCurses, sizeof( adminCurses_t ) ); for( i = 0; i < MAX_PERSISTANT; i++ ) client->ps.persistant[ i ] = persistant[ i ]; |