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

Function ObjIndex

Source/setmaps.cpp:68–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66};
67
68int ObjIndex(int x, int y)
69{
70 int i;
71 int oi;
72
73 for (i = 0; i < nobjects; i++) {
74 oi = objectactive[i];
75 if (object[oi]._ox == x && object[oi]._oy == y)
76 return oi;
77 }
78 app_fatal("ObjIndex: Active object not found at (%d,%d)", x, y);
79 return -1;
80}
81
82#ifndef SPAWN
83void AddSKingObjs()

Callers 4

LoadMapObjectsFunction · 0.85
AddSKingObjsFunction · 0.85
AddSChamObjsFunction · 0.85
AddVileObjsFunction · 0.85

Calls 1

app_fatalFunction · 0.85

Tested by

no test coverage detected