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

Function AddL3Objs

Source/objects.cpp:407–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void AddL3Objs(int x1, int y1, int x2, int y2)
408{
409 int i, j, pn;
410
411 for (j = y1; j < y2; j++) {
412 for (i = x1; i < x2; i++) {
413 pn = dPiece[i][j];
414 if (pn == 531)
415 AddObject(OBJ_L3LDOOR, i, j);
416 if (pn == 534)
417 AddObject(OBJ_L3RDOOR, i, j);
418 }
419 }
420}
421
422BOOL WallTrapLocOk(int xp, int yp)
423{

Callers 1

InitObjectsFunction · 0.85

Calls 1

AddObjectFunction · 0.85

Tested by

no test coverage detected