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

Function ObjChangeMap

Source/objects.cpp:2310–2328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2308}
2309
2310void ObjChangeMap(int x1, int y1, int x2, int y2)
2311{
2312 int i, j;
2313
2314 for (j = y1; j <= y2; j++) {
2315 for (i = x1; i <= x2; i++) {
2316 ObjSetMini(i, j, pdungeon[i][j]);
2317 dungeon[i][j] = pdungeon[i][j];
2318 }
2319 }
2320 if (leveltype == DTYPE_CATHEDRAL) {
2321 ObjL1Special(2 * x1 + 16, 2 * y1 + 16, 2 * x2 + 17, 2 * y2 + 17);
2322 AddL1Objs(2 * x1 + 16, 2 * y1 + 16, 2 * x2 + 17, 2 * y2 + 17);
2323 }
2324 if (leveltype == DTYPE_CATACOMBS) {
2325 ObjL2Special(2 * x1 + 16, 2 * y1 + 16, 2 * x2 + 17, 2 * y2 + 17);
2326 AddL2Objs(2 * x1 + 16, 2 * y1 + 16, 2 * x2 + 17, 2 * y2 + 17);
2327 }
2328}
2329
2330void ObjChangeMapResync(int x1, int y1, int x2, int y2)
2331{

Callers 8

OperateLeverFunction · 0.85
OperateBookLeverFunction · 0.85
OperatePedistalFunction · 0.85
BreakCruxFunction · 0.85
SyncCruxFunction · 0.85
SyncLeverFunction · 0.85
M_DoTalkFunction · 0.85
MAI_SnotSpilFunction · 0.85

Calls 5

ObjSetMiniFunction · 0.85
ObjL1SpecialFunction · 0.85
AddL1ObjsFunction · 0.85
ObjL2SpecialFunction · 0.85
AddL2ObjsFunction · 0.85

Tested by

no test coverage detected