From 82a1880d89483ba0fc6e1015720f0c861807276f Mon Sep 17 00:00:00 2001 From: stpohle Date: Sat, 9 Apr 2005 19:23:14 +0000 Subject: [PATCH] new player won't have any gfx selected. --- src/packets.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/packets.c b/src/packets.c index e9ff979..59ae9f3 100644 --- a/src/packets.c +++ b/src/packets.c @@ -153,17 +153,8 @@ do_joingame (struct pkg_joingame *p_jg, _net_addr * addr) strncpy (pl->name, p_jg->name, LEN_PLAYERNAME); - if (bman.state == GS_wait) { - pl->gfx_nr = s_random (gfx.player_gfx_count); - while (pl->gfx_nr >= gfx.player_gfx_count) { - pl->gfx_nr -= gfx.player_gfx_count; - } - pl->gfx = &gfx.players[pl->gfx_nr]; - } - else { - pl->gfx_nr = -1; - pl->gfx = NULL; - } + pl->gfx_nr = -1; + pl->gfx = NULL; pl->state &= (0xFF - (PSF_alife + PSF_playing));