| 3853 | } |
| 3854 | |
| 3855 | void SyncOpL1Door(int pnum, int cmd, int i) |
| 3856 | { |
| 3857 | BOOL do_sync; |
| 3858 | |
| 3859 | if (pnum == myplr) |
| 3860 | return; |
| 3861 | |
| 3862 | do_sync = FALSE; |
| 3863 | if (cmd == CMD_OPENDOOR) { |
| 3864 | if (object[i]._oVar4 != 0) |
| 3865 | return; |
| 3866 | do_sync = TRUE; |
| 3867 | } |
| 3868 | if (cmd == CMD_CLOSEDOOR && object[i]._oVar4 == 1) |
| 3869 | do_sync = TRUE; |
| 3870 | if (do_sync) { |
| 3871 | if (object[i]._otype == OBJ_L1LDOOR) |
| 3872 | OperateL1LDoor(-1, i, FALSE); |
| 3873 | if (object[i]._otype == OBJ_L1RDOOR) |
| 3874 | OperateL1RDoor(-1, i, FALSE); |
| 3875 | } |
| 3876 | } |
| 3877 | |
| 3878 | void SyncOpL2Door(int pnum, int cmd, int i) |
| 3879 | { |
no test coverage detected