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

Function AddL1Objs

Source/objects.cpp:375–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375void AddL1Objs(int x1, int y1, int x2, int y2)
376{
377 int i, j, pn;
378
379 for (j = y1; j < y2; j++) {
380 for (i = x1; i < x2; i++) {
381 pn = dPiece[i][j];
382 if (pn == 270)
383 AddObject(OBJ_L1LIGHT, i, j);
384 if (pn == 44 || pn == 51 || pn == 214)
385 AddObject(OBJ_L1LDOOR, i, j);
386 if (pn == 46 || pn == 56)
387 AddObject(OBJ_L1RDOOR, i, j);
388 }
389 }
390}
391
392void AddL2Objs(int x1, int y1, int x2, int y2)
393{

Callers 3

InitObjectsFunction · 0.85
ObjChangeMapFunction · 0.85
LoadSetMapFunction · 0.85

Calls 1

AddObjectFunction · 0.85

Tested by

no test coverage detected