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

Function OperateL3Door

Source/objects.cpp:2730–2740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2728}
2729
2730void OperateL3Door(int pnum, int i, BOOL sendflag)
2731{
2732 int dpx, dpy;
2733
2734 dpx = abs(object[i]._ox - plr[pnum].WorldX);
2735 dpy = abs(object[i]._oy - plr[pnum].WorldY);
2736 if (dpx == 1 && dpy <= 1 && object[i]._otype == OBJ_L3RDOOR)
2737 OperateL3RDoor(pnum, i, sendflag);
2738 if (dpx <= 1 && dpy == 1 && object[i]._otype == OBJ_L3LDOOR)
2739 OperateL3LDoor(pnum, i, sendflag);
2740}
2741
2742void OperatePedistal(int pnum, int i)
2743{

Callers 1

OperateObjectFunction · 0.85

Calls 2

OperateL3RDoorFunction · 0.85
OperateL3LDoorFunction · 0.85

Tested by

no test coverage detected