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

Function RndLocOk

Source/objects.cpp:127–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127BOOL RndLocOk(int xp, int yp)
128{
129 if (dMonster[xp][yp])
130 return FALSE;
131 if (dPlayer[xp][yp])
132 return FALSE;
133 if (dObject[xp][yp])
134 return FALSE;
135 if (dFlags[xp][yp] & BFLAG_POPULATED)
136 return FALSE;
137 if (nSolidTable[dPiece[xp][yp]])
138 return FALSE;
139 if (leveltype != DTYPE_CATHEDRAL || dPiece[xp][yp] <= 126 || dPiece[xp][yp] >= 144)
140 return TRUE;
141 return FALSE;
142}
143
144void InitRndLocObj(int min, int max, int objtype)
145{

Callers 8

InitRndLocObjFunction · 0.85
InitRndLocBigObjFunction · 0.85
InitRndLocObj5x5Function · 0.85
AddBookLeverFunction · 0.85
InitRndBarrelsFunction · 0.85
AddStoryBooksFunction · 0.85
AddLazStandFunction · 0.85
GetRndObjLocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected