MCPcopy Create free account
hub / github.com/diasurgical/devilution / OperateL2Door

Function OperateL2Door

Source/objects.cpp:2718–2728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2716}
2717
2718void OperateL2Door(int pnum, int i, BOOL sendflag)
2719{
2720 int dpx, dpy;
2721
2722 dpx = abs(object[i]._ox - plr[pnum].WorldX);
2723 dpy = abs(object[i]._oy - plr[pnum].WorldY);
2724 if (dpx == 1 && dpy <= 1 && object[i]._otype == OBJ_L2LDOOR)
2725 OperateL2LDoor(pnum, i, sendflag);
2726 if (dpx <= 1 && dpy == 1 && object[i]._otype == OBJ_L2RDOOR)
2727 OperateL2RDoor(pnum, i, sendflag);
2728}
2729
2730void OperateL3Door(int pnum, int i, BOOL sendflag)
2731{

Callers 1

OperateObjectFunction · 0.85

Calls 2

OperateL2LDoorFunction · 0.85
OperateL2RDoorFunction · 0.85

Tested by

no test coverage detected