Skip to content

Obsolete condition in GameClient::Update #1084

@xezon

Description

@xezon
void GameClient::Update()
{
...
        if (!is_paused) {
        ...

        if (static_cast<unsigned int>(g_theWriteableGlobalData->m_frameToJumpTo) <= g_theGameLogic->Get_Frame()
            || g_theGameLogic->Get_Frame() == 0) {
            if (!is_paused) {
                g_theParticleSystemManager->Set_Player_Index(player_index);
            }
...

If testing !is_paused twice even though it is not changed in between. Can remove.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions