MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / UpdateAllEffects

Function UpdateAllEffects

TombEngine/Game/items.cpp:917–934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

915}
916
917void UpdateAllEffects()
918{
919 InItemControlLoop = true;
920
921 short fxNumber = NextFxActive;
922 while (fxNumber != NO_VALUE)
923 {
924 short nextFx = EffectList[fxNumber].nextActive;
925 auto* fx = &EffectList[fxNumber];
926 if (Objects[fx->objectNumber].control)
927 Objects[fx->objectNumber].control(fxNumber);
928
929 fxNumber = nextFx;
930 }
931
932 InItemControlLoop = false;
933 KillMoveEffects();
934}
935
936bool UpdateItemRoom(short itemNumber)
937{

Callers 1

GamePhaseFunction · 0.85

Calls 1

KillMoveEffectsFunction · 0.85

Tested by

no test coverage detected