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

Function ClrAllObjects

Source/objects.cpp:226–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void ClrAllObjects()
227{
228 int i;
229
230 for (i = 0; i < MAXOBJECTS; i++) {
231 object[i]._ox = 0;
232 object[i]._oy = 0;
233 object[i]._oAnimData = 0;
234 object[i]._oAnimDelay = 0;
235 object[i]._oAnimCnt = 0;
236 object[i]._oAnimLen = 0;
237 object[i]._oAnimFrame = 0;
238 object[i]._oDelFlag = FALSE;
239 object[i]._oVar1 = 0;
240 object[i]._oVar2 = 0;
241 object[i]._oVar3 = 0;
242 object[i]._oVar4 = 0;
243 }
244 nobjects = 0;
245 for (i = 0; i < MAXOBJECTS; i++) {
246 objectavail[i] = i;
247 objectactive[i] = 0;
248 }
249 trapdir = 0;
250 trapid = 1;
251 leverid = 1;
252}
253
254void AddTortures()
255{

Callers 2

InitObjectsFunction · 0.85
SetMapObjectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected