diff options
author | /dev/humancontroller <devhc@example.com> | 2014-07-12 16:30:38 +0200 |
---|---|---|
committer | enneract <trem.redman@gmail.com> | 2014-07-12 17:06:40 +0200 |
commit | 6f7401ea027a28db7dbfc981b0a23086f31fc920 (patch) | |
tree | e8e3bf90ae28fe2412efac934ad15e53a7a3121c /src/game/g_client.c | |
parent | ee3e2ce63c1f6810d36cc4e22eddeb51527efc1d (diff) |
fix the crash that occurs, for example, when selecting a cuboid to build
this also possibly fixes "relaying cuboids"
also add proper declarations for related functions
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index 0f96ce6..8aa5bd8 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1797,10 +1797,10 @@ G_RelayCuboidToSpectators Called everytime a player changes his cuboid size. ============ */ -void G_RelayCuboidToSpectators( gentity_t *self ) +void G_RelayCuboidToSpectators( gclient_t *client ) { - 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; + client->ps.misc[ MISC_CUBOID_X ] = client->cuboidSelection[ 0 ] * 10; + client->ps.misc[ MISC_CUBOID_Y ] = client->cuboidSelection[ 1 ] * 10; + client->ps.misc[ MISC_CUBOID_Z ] = client->cuboidSelection[ 2 ] * 10; } |