diff options
author | enneract <trem.redman@gmail.com> | 2014-02-25 13:03:43 +0100 |
---|---|---|
committer | enneract <trem.redman@gmail.com> | 2014-02-25 13:03:43 +0100 |
commit | dac3d3127fc94231bdde0c0822bb12de01e9e836 (patch) | |
tree | 17829bc1a1b0ddb2d49421c5ea0114b4c2eff436 /src/game/g_client.c | |
parent | cd9f8731a13a29d51a401f67ec2aa0b8962e01c8 (diff) |
0.1.7
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index 7596ea1..a3c7a67 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1482,6 +1482,7 @@ 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 ]; + persistant[ PERS_BUILDPOINTS ] = 0; // clear buildpoints eventSequence = client->ps.eventSequence; memset( client, 0, sizeof( *client ) ); @@ -1795,11 +1796,12 @@ void ClientDisconnect( int clientNum ) G_RelayCuboidToSpectators Called everytime a player changes his cuboid size. -A server command is issued to everyone spectating him -so that their clients can know the cuboid size as well. ============ */ -void G_RelayCuboidToSpectators(gentity_t *self) +void G_RelayCuboidToSpectators( gentity_t *self ) { + self->client->ps.misc[ MISC_CUBOID_X ] = self->client->cuboidSelection[ 0 ] * 10; + self->client->ps.misc[ MISC_CUBOID_Y ] = self->client->cuboidSelection[ 1 ] * 10; + self->client->ps.misc[ MISC_CUBOID_Z ] = self->client->cuboidSelection[ 2 ] * 10; } |