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

Function ObjChangeMapResync

Source/objects.cpp:2330–2346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2328}
2329
2330void ObjChangeMapResync(int x1, int y1, int x2, int y2)
2331{
2332 int i, j;
2333
2334 for (j = y1; j <= y2; j++) {
2335 for (i = x1; i <= x2; i++) {
2336 ObjSetMini(i, j, pdungeon[i][j]);
2337 dungeon[i][j] = pdungeon[i][j];
2338 }
2339 }
2340 if (leveltype == DTYPE_CATHEDRAL) {
2341 ObjL1Special(2 * x1 + 16, 2 * y1 + 16, 2 * x2 + 17, 2 * y2 + 17);
2342 }
2343 if (leveltype == DTYPE_CATACOMBS) {
2344 ObjL2Special(2 * x1 + 16, 2 * y1 + 16, 2 * x2 + 17, 2 * y2 + 17);
2345 }
2346}
2347
2348void OperateL1Door(int pnum, int i, BOOL sendflag)
2349{

Callers 7

Obj_CircleFunction · 0.85
OperateBookFunction · 0.85
OperateSChambBkFunction · 0.85
SyncQSTLeverFunction · 0.85
SyncPedistalFunction · 0.85
ResyncQuestsFunction · 0.85
MAI_LazurusFunction · 0.85

Calls 3

ObjSetMiniFunction · 0.85
ObjL1SpecialFunction · 0.85
ObjL2SpecialFunction · 0.85

Tested by

no test coverage detected