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

Function Obj_Door

Source/objects.cpp:1549–1568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1547}
1548
1549void Obj_Door(int i)
1550{
1551 int dx, dy;
1552
1553 if (!object[i]._oVar4) {
1554 object[i]._oMissFlag = FALSE;
1555 object[i]._oSelFlag = 3;
1556 } else {
1557 dy = object[i]._oy;
1558 dx = object[i]._ox;
1559 object[i]._oSelFlag = 2;
1560 object[i]._oMissFlag = TRUE;
1561 object[i]._oVar4 = (((dItem[dx][dy] == 0 ? 1 : 0)
1562 & (dDead[dx][dy] == 0 ? 1 : 0)
1563 & (dPlayer[dx][dy] == 0 ? 1 : 0)
1564 & (dMonster[dx][dy] == 0 ? 1 : 0))
1565 == 0)
1566 + 1;
1567 }
1568}
1569
1570void Obj_Sarc(int i)
1571{

Callers 1

ProcessObjectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected