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

Function SyncL3Doors

Source/objects.cpp:4248–4265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4246}
4247
4248void SyncL3Doors(int i)
4249{
4250 int x, y;
4251
4252 object[i]._oMissFlag = TRUE;
4253 x = object[i]._ox;
4254 y = object[i]._oy;
4255 object[i]._oSelFlag = 2;
4256 if (object[i]._otype == OBJ_L3LDOOR && object[i]._oVar4 == 0) {
4257 ObjSetMicro(x, y, 531);
4258 } else if (object[i]._otype == OBJ_L3LDOOR && (object[i]._oVar4 == 1 || object[i]._oVar4 == 2)) {
4259 ObjSetMicro(x, y, 538);
4260 } else if (object[i]._otype == OBJ_L3RDOOR && object[i]._oVar4 == 0) {
4261 ObjSetMicro(x, y, 534);
4262 } else if (object[i]._otype == OBJ_L3RDOOR && (object[i]._oVar4 == 1 || object[i]._oVar4 == 2)) {
4263 ObjSetMicro(x, y, 541);
4264 }
4265}
4266
4267void SyncObjectAnim(int o)
4268{

Callers 1

SyncObjectAnimFunction · 0.85

Calls 1

ObjSetMicroFunction · 0.85

Tested by

no test coverage detected