From 9624217d3e62fef17b96db14995198172f16c51e Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sun, 13 Jul 2014 16:41:53 +0200 Subject: remove some redundant statements --- src/game/g_client.c | 2 -- src/game/g_main.c | 1 - 2 files changed, 3 deletions(-) diff --git a/src/game/g_client.c b/src/game/g_client.c index 5e15162f..edb8942c 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1313,7 +1313,6 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles ent->s.groundEntityNum = ENTITYNUM_NONE; ent->client = &level.clients[ index ]; ent->takedamage = qtrue; - ent->inuse = qtrue; ent->classname = "player"; ent->r.contents = CONTENTS_BODY; ent->clipmask = MASK_PLAYERSOLID; @@ -1538,7 +1537,6 @@ void ClientDisconnect( int clientNum ) ent->client->pers.ip.str, ent->client->pers.guid, ent->client->pers.netname ); trap_UnlinkEntity( ent ); - ent->s.modelindex = 0; ent->inuse = qfalse; ent->classname = "disconnected"; ent->client->pers.connected = CON_DISCONNECTED; diff --git a/src/game/g_main.c b/src/game/g_main.c index cddd5135..d262a011 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -1537,7 +1537,6 @@ void MoveClientToIntermission( gentity_t *ent ) ent->client->ps.eFlags = 0; ent->s.eFlags = 0; ent->s.eType = ET_GENERAL; - ent->s.modelindex = 0; ent->s.loopSound = 0; ent->s.event = 0; ent->r.contents = 0; -- cgit