Skip to content

Replace more if / else chains with switch statements #1978

Description

@Caball009

DoesCommandRequireACommandID
CommandRequiresAck
CommandRequiresDirectSend
IsCommandSynchronized

ScreenMotionBlurFilter::setup
W3DView::isCameraMovementFinished
Keyboard::updateKeys

SelectionTranslator::translateGameMessage -> case GameMessage::MSG_MOUSEOVER_DRAWABLE_HINT

These functions could all benefit from refactoring if / else chains to switch statements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MinorSeverity: Minor < Major < Critical < BlockerPerformanceIs a performance concernRefactorEdits the code with insignificant behavior changes, is never user facing

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions