MCPcopy Create free account
hub / github.com/assaultcube/AC / deletesoundentity

Function deletesoundentity

source/src/world.cpp:285–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283COMMAND(getentattr, "ii");
284
285void deletesoundentity(entity &e)
286{
287 entityreference entref(&e);
288 location *loc = audiomgr.locations.find(e.attr1, &entref, mapsounds);
289 if(loc) loc->drop();
290}
291
292vector<persistent_entity> deleted_ents;
293

Callers 5

delentFunction · 0.85
newentityFunction · 0.85
loopvFunction · 0.85
deleteentityFunction · 0.85
deletemapsoundslotFunction · 0.85

Calls 2

findMethod · 0.45
dropMethod · 0.45

Tested by

no test coverage detected