diff options
author | /dev/humancontroller <devhc@example.com> | 2014-07-14 16:09:38 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:17 +0100 |
commit | e1b070c720d81d2eb7ccee279488bfc497b96567 (patch) | |
tree | 9ca0687a47ea6dabc0f90c74c8201f1ec8a48955 /src/game | |
parent | c3142a1b4cff9432a809b30d953b8a16e107065c (diff) |
give buildable placeholders the "builder" classname; give the "func_door_model_clip_brush" classname to clip brush entities for func_door_model entities
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_buildable.c | 2 | ||||
-rw-r--r-- | src/game/g_mover.c | 1 |
2 files changed, 3 insertions, 0 deletions
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; |