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

Function TFit_Obj3

Source/themes.cpp:197–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197BOOL TFit_Obj3(int t)
198{
199 int xp, yp;
200 char objrnd[4] = { 4, 4, 3, 5 };
201
202 for (yp = 1; yp < MAXDUNY - 1; yp++) {
203 for (xp = 1; xp < MAXDUNX - 1; xp++) {
204 if (CheckThemeObj3(xp, yp, t, objrnd[leveltype - 1])) {
205 themex = xp;
206 themey = yp;
207 return TRUE;
208 }
209 }
210 }
211
212 return FALSE;
213}
214
215BOOL CheckThemeReqs(int t)
216{

Callers 3

SpecialThemeFitFunction · 0.85
Theme_ArmorStandFunction · 0.85
Theme_WeaponRackFunction · 0.85

Calls 1

CheckThemeObj3Function · 0.85

Tested by

no test coverage detected