Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that network timeout info shows up in the info panel #7155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

StephenCWills
Copy link
Member

The TimeoutCursor() function sets up the info panel to display basic information about why the game is lagging.

devilutionX/Source/diablo.cpp

Lines 1476 to 1478 in 15e44a1

InfoString = StringOrView {};
AddPanelString(_("-- Network timeout --"));
AddPanelString(_("-- Waiting for players --"));

This text was being overwritten by the logic in DrawInfoBox() unless the player was highlighting an item or something that would skip that logic. This means the text sometimes shows up and sometimes doesn't. This PR simply adjusts the logic in DrawInfoBox() to detect when the game is lagging and avoid clearing the info text, overwriting it with something else, or using the wrong text color.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants