ID:986923
 
BYOND Version:497
Operating System:Windows 7 Pro 64-bit
Web Browser:Firefox 15.0.1
Applies to:Dream Seeker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
If you give a button focus (such as by clicking it) and then disable the button (without taking away its focus), all while moving around the map, Dream Seeker will freeze. Sometimes you can un-freeze it by clicking somewhere on the interface.

Report based on this post.

Numbered Steps to Reproduce Problem:
1) Give a button focus by clicking it
2) While moving around the map, disable the button (but without taking the button's focus)
3) Dream Seeker will stop responding

Code Snippet (if applicable) to Reproduce Problem:
You can download a test environment here:
http://files.byondhome.com/DarkCampainger/ Button%20Disabled%20Lockup_src.zip

Expected Results:
Focus is automatically removed from the disabled control

Actual Results:
Dream Seeker freezes

Does the problem occur:
Every time? Or how often? Every time
In other games? Isolated in above test case
In other user accounts? On admin
On other computers? Yes, it also happens to those in the aforementioned post and a few others I talked to

When does the problem NOT occur?
If you first take the focus away from the button, such as by giving it to the map (winset(player,"map","focus=true")); or if you aren't moving when the button is disabled.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Unknown, can test if requested

Workarounds:
Remove focus from the button before disabling it by giving it to another control (ie the map).
I've had the exact same issue, but applied a bit different - If the button was disabled while selected, then whenever I NEXT went to move, it would freeze.