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

Function KillMoveEffects

TombEngine/Game/control/control.cpp:478–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478void KillMoveEffects()
479{
480 if (ItemNewRoomNo > 0)
481 {
482 for (int i = 0; i < ItemNewRoomNo; i++)
483 {
484 int itemNumber = ItemNewRooms[i * 2];
485 if (itemNumber >= 0)
486 {
487 EffectNewRoom(itemNumber, ItemNewRooms[(i * 2) + 1]);
488 }
489 else
490 {
491 KillEffect(itemNumber & 0x7FFF);
492 }
493 }
494 }
495
496 ItemNewRoomNo = 0;
497}
498
499// NOTE: No one should use this ever again.
500int GetRandomControl()

Callers 1

UpdateAllEffectsFunction · 0.85

Calls 2

EffectNewRoomFunction · 0.85
KillEffectFunction · 0.85

Tested by

no test coverage detected