NeotokyoRebuild / neo

NEOTOKYO Rebuild - Source SDK 2013 mod of NEOTOKYO
Other
11 stars 9 forks source link

Fix cursor stuck after disconnect while in menu then reconnect #412

Closed nullsystem closed 1 week ago

nullsystem commented 1 week ago

Description

It's possible to get in a state where the panel will cause the cursor to be stuck being not usable in 1st person viewing mode and not much to be done about it aside from restarting. This just resets the panel states, and it's at the section where the previously when the HUD panels was managed it was reset, but now it's all via gHUD, it wasn't reset properly.

Toolchain

Linked Issues

AdamTadeusz commented 1 week ago

I don't mind merging this, but fwiw I can't reproduce the bug it's fixing. Tested on Windows with commits 96f57be and b1544b1 following the repro steps in #411 but everything seems to work fine.

Your windows cursor will remain visible in the center of the screen. I was able to reproduce the problem, this does indeed seem to fix it