summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2014-07-13 16:41:53 +0200
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:09 +0100
commit9624217d3e62fef17b96db14995198172f16c51e (patch)
tree1471854c942916a061eeec1e41909db6a6fb5737
parent34b4da297aebb90a1b815248f92c119d63572c22 (diff)
remove some redundant statements
-rw-r--r--src/game/g_client.c2
-rw-r--r--src/game/g_main.c1
2 files changed, 0 insertions, 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;