From dac3d3127fc94231bdde0c0822bb12de01e9e836 Mon Sep 17 00:00:00 2001 From: enneract Date: Tue, 25 Feb 2014 13:03:43 +0100 Subject: 0.1.7 --- src/game/g_client.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/game/g_client.c') 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; } -- cgit