MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / VisEffectRelink

Function VisEffectRelink

Descent3/viseffect.cpp:772–777  ·  view source on GitHub ↗

when an effect has moved into a new room, this function unlinks it from its old room and links it into the new room

Source from the content-addressed store, hash-verified

770// when an effect has moved into a new room, this function unlinks it
771// from its old room and links it into the new room
772void VisEffectRelink(int visnum, int newroomnum) {
773 ASSERT(visnum >= 0 && visnum < max_vis_effects);
774
775 VisEffectUnlink(visnum);
776 VisEffectLink(visnum, newroomnum);
777}
778
779// Kills all the effects that are dead
780void VisEffectDeleteDead() {

Callers 2

do_vis_physics_simFunction · 0.85
VisEffectMoveOneFunction · 0.85

Calls 2

VisEffectUnlinkFunction · 0.85
VisEffectLinkFunction · 0.85

Tested by

no test coverage detected