From cfd65da22749706fe984db223b9a6344b8ab980f Mon Sep 17 00:00:00 2001 From: qndel Date: Thu, 2 Jan 2020 21:14:36 +0100 Subject: [PATCH] [hellfire] SyncOpL1Door bin exact --- Source/objects.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/objects.cpp b/Source/objects.cpp index 19471041e..df509e109 100644 --- a/Source/objects.cpp +++ b/Source/objects.cpp @@ -4031,15 +4031,13 @@ void OperateObject(int pnum, int i, BOOL TeleFlag) void SyncOpL1Door(int pnum, int cmd, int i) { - BOOL do_sync; + DIABOOL do_sync; if (pnum == myplr) return; do_sync = FALSE; - if (cmd == CMD_OPENDOOR) { - if (object[i]._oVar4 != 0) - return; + if (cmd == CMD_OPENDOOR && object[i]._oVar4 == 0) { do_sync = TRUE; } if (cmd == CMD_CLOSEDOOR && object[i]._oVar4 == 1)