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

Function ItemPlace

Source/items.cpp:201–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201BOOL ItemPlace(int xp, int yp)
202{
203 if (dMonster[xp][yp])
204 return FALSE;
205 if (dPlayer[xp][yp])
206 return FALSE;
207 if (dItem[xp][yp])
208 return FALSE;
209 if (dObject[xp][yp])
210 return FALSE;
211 if (dFlags[xp][yp] & BFLAG_POPULATED)
212 return FALSE;
213 if (nSolidTable[dPiece[xp][yp]])
214 return FALSE;
215
216 return TRUE;
217}
218
219void AddInitItems()
220{

Callers 1

AddInitItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected