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

Function DeleteObject_

Source/objects.cpp:907–918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905#endif
906
907void DeleteObject_(int oi, int i)
908{
909 int ox, oy;
910
911 ox = object[oi]._ox;
912 oy = object[oi]._oy;
913 dObject[ox][oy] = 0;
914 objectavail[-nobjects + MAXOBJECTS] = oi;
915 nobjects--;
916 if (nobjects > 0 && i != nobjects)
917 objectactive[i] = objectactive[nobjects];
918}
919
920void SetupObject(int i, int x, int y, int ot)
921{

Callers 1

ProcessObjectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected