| 3899 | } |
| 3900 | |
| 3901 | void SyncOpL3Door(int pnum, int cmd, int i) |
| 3902 | { |
| 3903 | BOOL do_sync; |
| 3904 | |
| 3905 | if (pnum == myplr) |
| 3906 | return; |
| 3907 | |
| 3908 | do_sync = FALSE; |
| 3909 | if (cmd == CMD_OPENDOOR) { |
| 3910 | if (object[i]._oVar4 != 0) |
| 3911 | return; |
| 3912 | do_sync = TRUE; |
| 3913 | } |
| 3914 | if (cmd == CMD_CLOSEDOOR && object[i]._oVar4 == 1) |
| 3915 | do_sync = TRUE; |
| 3916 | if (do_sync) { |
| 3917 | if (object[i]._otype == OBJ_L3LDOOR) |
| 3918 | OperateL2LDoor(-1, i, FALSE); |
| 3919 | if (object[i]._otype == OBJ_L3RDOOR) |
| 3920 | OperateL2RDoor(-1, i, FALSE); |
| 3921 | } |
| 3922 | } |
| 3923 | |
| 3924 | void SyncOpObject(int pnum, int cmd, int i) |
| 3925 | { |
no test coverage detected