Add hacks to func_door(_rotating) that deal with 'wait' being 0.

This commit is contained in:
Marco Cawthorne 2021-09-16 20:26:03 +02:00
parent 2cebd560c3
commit 1764677394
Signed by: eukara
GPG Key ID: C196CD8BA993248A
2 changed files with 8 additions and 0 deletions

View File

@ -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();

View File

@ -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) {