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

Function SyncL2Doors

Source/objects.cpp:4226–4246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4224}
4225
4226void SyncL2Doors(int i)
4227{
4228 int x, y;
4229
4230 if (object[i]._oVar4 == 0)
4231 object[i]._oMissFlag = FALSE;
4232 else
4233 object[i]._oMissFlag = TRUE;
4234 x = object[i]._ox;
4235 y = object[i]._oy;
4236 object[i]._oSelFlag = 2;
4237 if (object[i]._otype == OBJ_L2LDOOR && object[i]._oVar4 == 0) {
4238 ObjSetMicro(x, y, 538);
4239 } else if (object[i]._otype == OBJ_L2LDOOR && (object[i]._oVar4 == 1 || object[i]._oVar4 == 2)) {
4240 ObjSetMicro(x, y, 13);
4241 } else if (object[i]._otype == OBJ_L2RDOOR && object[i]._oVar4 == 0) {
4242 ObjSetMicro(x, y, 540);
4243 } else if (object[i]._otype == OBJ_L2RDOOR && (object[i]._oVar4 == 1 || object[i]._oVar4 == 2)) {
4244 ObjSetMicro(x, y, 17);
4245 }
4246}
4247
4248void SyncL3Doors(int i)
4249{

Callers 1

SyncObjectAnimFunction · 0.85

Calls 1

ObjSetMicroFunction · 0.85

Tested by

no test coverage detected