Add hacks to func_door(_rotating) that deal with 'wait' being 0.
This commit is contained in:
parent
2cebd560c3
commit
1764677394
2 changed files with 8 additions and 0 deletions
|
@ -346,6 +346,10 @@ func_door::Respawn(void)
|
|||
m_vecDest = [0,0,0];
|
||||
m_vecMoveDir = [0,0,0];
|
||||
|
||||
/* this is a terrible hack */
|
||||
if (m_flWait == 0)
|
||||
m_flWait = 0.01f;
|
||||
|
||||
/* angles to vecMoveDir */
|
||||
SetMovementDirection();
|
||||
|
||||
|
|
|
@ -366,6 +366,10 @@ void func_door_rotating::Respawn(void)
|
|||
nextthink = 0.0f;
|
||||
avelocity = [0,0,0];
|
||||
|
||||
/* this is a terrible hack */
|
||||
if (m_flWait == 0)
|
||||
m_flWait = 0.01f;
|
||||
|
||||
blocked = Blocked;
|
||||
|
||||
if (spawnflags & SF_ROT_USE) {
|
||||
|
|
Loading…
Reference in a new issue