From e1b070c720d81d2eb7ccee279488bfc497b96567 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Mon, 14 Jul 2014 16:09:38 +0200 Subject: give buildable placeholders the "builder" classname; give the "func_door_model_clip_brush" classname to clip brush entities for func_door_model entities --- src/game/g_buildable.c | 2 ++ src/game/g_mover.c | 1 + 2 files changed, 3 insertions(+) (limited to 'src') diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 7a6ad366..09375552 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -4269,6 +4269,7 @@ static void G_LayoutBuildItem( buildable_t buildable, vec3_t origin, gentity_t *builder; builder = G_Spawn( ); + builder->classname = "builder"; VectorCopy( origin, builder->r.currentOrigin ); VectorCopy( angles, builder->r.currentAngles ); VectorCopy( origin2, builder->s.origin2 ); @@ -4558,6 +4559,7 @@ void G_BuildLogRevert( int id ) else { gentity_t *builder = G_Spawn(); + builder->classname = "builder"; VectorCopy( log->origin, builder->r.currentOrigin ); VectorCopy( log->angles, builder->r.currentAngles ); diff --git a/src/game/g_mover.c b/src/game/g_mover.c index d0620118..a4f52867 100644 --- a/src/game/g_mover.c +++ b/src/game/g_mover.c @@ -1704,6 +1704,7 @@ void SP_func_door_model( gentity_t *ent ) //brush model clipBrush = ent->clipBrush = G_Spawn( ); + clipBrush->classname = "func_door_model_clip_brush"; clipBrush->model = ent->model; trap_SetBrushModel( clipBrush, clipBrush->model ); clipBrush->s.eType = ET_INVISIBLE; -- cgit