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

Function SyncCrux

Source/objects.cpp:4168–4185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4166}
4167
4168void SyncCrux(int i)
4169{
4170 BOOL found;
4171 int j, oi, type;
4172
4173 found = TRUE;
4174 for (j = 0; j < nobjects; j++) {
4175 oi = objectactive[j];
4176 type = object[oi]._otype;
4177 if (type != OBJ_CRUX1 && type != OBJ_CRUX2 && type != OBJ_CRUX3)
4178 continue;
4179 if (object[i]._oVar8 != object[oi]._oVar8 || object[oi]._oBreak == -1)
4180 continue;
4181 found = FALSE;
4182 }
4183 if (found)
4184 ObjChangeMap(object[i]._oVar1, object[i]._oVar2, object[i]._oVar3, object[i]._oVar4);
4185}
4186
4187void SyncLever(int i)
4188{

Callers 1

SyncObjectAnimFunction · 0.85

Calls 1

ObjChangeMapFunction · 0.85

Tested by

no test coverage detected