Skip to content

Commit

Permalink
Improve CBaseTrigger::InitTrigger to allow use custom triggers withou…
Browse files Browse the repository at this point in the history
…t bsp model just origin,mins,maxs
  • Loading branch information
s1lentq committed Oct 28, 2023
1 parent 426c975 commit 96e2121
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion regamedll/dlls/triggers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,10 @@ void CBaseTrigger::InitTrigger()
pev->movetype = MOVETYPE_NONE;

// set size and link into world
SET_MODEL(ENT(pev), STRING(pev->model));
if (FStringNull(pev->model))
UTIL_SetOrigin(pev, pev->origin); // link into the list
else
SET_MODEL(ENT(pev), STRING(pev->model));

if (CVAR_GET_FLOAT("showtriggers") == 0)
{
Expand Down

0 comments on commit 96e2121

Please sign in to comment.