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

Function SyncPedistal

Source/objects.cpp:4208–4224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4206}
4207
4208void SyncPedistal(int i)
4209{
4210 BYTE *setp;
4211
4212 if (object[i]._oVar6 == 1)
4213 ObjChangeMapResync(setpc_x, setpc_y + 3, setpc_x + 2, setpc_y + 7);
4214 if (object[i]._oVar6 == 2) {
4215 ObjChangeMapResync(setpc_x, setpc_y + 3, setpc_x + 2, setpc_y + 7);
4216 ObjChangeMapResync(setpc_x + 6, setpc_y + 3, setpc_x + setpc_w, setpc_y + 7);
4217 }
4218 if (object[i]._oVar6 == 3) {
4219 ObjChangeMapResync(object[i]._oVar1, object[i]._oVar2, object[i]._oVar3, object[i]._oVar4);
4220 setp = LoadFileInMem("Levels\\L2Data\\Blood2.DUN", NULL);
4221 LoadMapObjs(setp, 2 * setpc_x, 2 * setpc_y);
4222 mem_free_dbg(setp);
4223 }
4224}
4225
4226void SyncL2Doors(int i)
4227{

Callers 1

SyncObjectAnimFunction · 0.85

Calls 4

ObjChangeMapResyncFunction · 0.85
LoadFileInMemFunction · 0.85
LoadMapObjsFunction · 0.85
mem_free_dbgFunction · 0.85

Tested by

no test coverage detected