summaryrefslogtreecommitdiff
path: root/src/cgame/cg_ents.c
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2011-06-09 22:06:26 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:18:08 +0000
commitdf54e829b31c6fe4c4f126b93250ec6872930832 (patch)
tree8dde4791f2684ab346995f6d6a5521097f74f57e /src/cgame/cg_ents.c
parent655f1d1b608df44ecc03f0dba43165f351261019 (diff)
* (bug 4996) Fix invalid configstring errors regarding locations in cgame. (/dev/humancontroller)
Diffstat (limited to 'src/cgame/cg_ents.c')
-rw-r--r--src/cgame/cg_ents.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c
index b2794a8b..7b27579a 100644
--- a/src/cgame/cg_ents.c
+++ b/src/cgame/cg_ents.c
@@ -782,26 +782,6 @@ static void CG_LightFlare( centity_t *cent )
/*
=========================
-CG_LinkLocation
-=========================
-*/
-void CG_LinkLocation( centity_t *cent )
-{
- centity_t *tempent;
-
- for( tempent = cg.locationHead; tempent; tempent = tempent->nextLocation )
- {
- if( tempent == cent )
- return;
- }
-
- cent->nextLocation = cg.locationHead;
- cg.locationHead = cent;
-
-}
-
-/*
-=========================
CG_Lev2ZapChain
=========================
*/
@@ -1091,6 +1071,7 @@ static void CG_AddCEntity( centity_t *cent )
case ET_INVISIBLE:
case ET_PUSH_TRIGGER:
case ET_TELEPORT_TRIGGER:
+ case ET_LOCATION:
break;
case ET_GENERAL:
@@ -1148,10 +1129,6 @@ static void CG_AddCEntity( centity_t *cent )
case ET_LEV2_ZAP_CHAIN:
CG_Lev2ZapChain( cent );
break;
-
- case ET_LOCATION:
- CG_LinkLocation( cent );
- break;
}
}