| 3876 | } |
| 3877 | |
| 3878 | void SyncOpL2Door(int pnum, int cmd, int i) |
| 3879 | { |
| 3880 | BOOL do_sync; |
| 3881 | |
| 3882 | if (pnum == myplr) |
| 3883 | return; |
| 3884 | |
| 3885 | do_sync = FALSE; |
| 3886 | if (cmd == CMD_OPENDOOR) { |
| 3887 | if (object[i]._oVar4 != 0) |
| 3888 | return; |
| 3889 | do_sync = TRUE; |
| 3890 | } |
| 3891 | if (cmd == CMD_CLOSEDOOR && object[i]._oVar4 == 1) |
| 3892 | do_sync = TRUE; |
| 3893 | if (do_sync) { |
| 3894 | if (object[i]._otype == OBJ_L2LDOOR) |
| 3895 | OperateL2LDoor(-1, i, FALSE); |
| 3896 | if (object[i]._otype == OBJ_L2RDOOR) |
| 3897 | OperateL2RDoor(-1, i, FALSE); |
| 3898 | } |
| 3899 | } |
| 3900 | |
| 3901 | void SyncOpL3Door(int pnum, int cmd, int i) |
| 3902 | { |
no test coverage detected