Maintenance: Second pass: name remaining numeric switch case labels (identifier-only; no code change). ~3,500 more labels across 150

Batch #14936 by ragnarok-clanker: no function's compiled code changes; checked with 158 compiled unit(s), including every includer of Source/Client/Mode/GameModeEnums.h, Source/Client/Mode/ModeMessage.h, Source/Contents/Actors/ActorEnums.h, Source/Contents/Actors/PetEnums.h, Source/Contents/Combat/CombatTypes.h, Source/Contents/Configuration/ServiceEnums.h, Source/Contents/Effects/EffectPrimId.h, Source/Contents/Hotkeys/InterfaceHotkey.h, Source/Contents/Items/ItemId.h, Source/Contents/Items/ItemType.h, Source/Network/Packets/ModeResultEnums.h, Source/Network/Packets/NoticeEnums.h, Source/Network/Packets/PacketId.h, Source/UI/Window/UIEnums.h, Source/UI/Window/WindowId.h.
This commit is contained in:
ragnarok-clanker 2026-11-08 12:37:46 +00:00
commit 858265cc69
159 changed files with 5409 additions and 3560 deletions

View file

@ -1,4 +1,5 @@
#include "Contents/Effects/SpriteParticle.h"
#include "Contents/Actors/ActorEnums.h"
#include "Client/Mode/CGameMode.h"
#include "Client/Mode/ModeMgr.h"
#include "Contents/Actors/GameActor.h"
@ -77,17 +78,17 @@ void CSpriteParticle::UpdateFrame() {
}
switch (this->loopMode) {
case 0:
case MT_LOOP:
if (this->frame >= frameCount) {
this->frame = 0;
}
break;
case 1:
case MT_ONETIME:
if (this->frame >= frameCount) {
this->life = -1.0f;
}
break;
case 2:
case MT_STATIC:
if (this->frame >= frameCount) {
this->frame = static_cast<int>(frameCount) - 1;
}