lantus / devilution-nx

Diablo for the Nintendo Switch
The Unlicense
859 stars 61 forks source link

Pressing + or open inventory near a dungeon up/down glitches #19

Closed erfg12 closed 5 years ago

erfg12 commented 5 years ago

All sorts of weird glitches happen when you open inventory or press + near the dungeon up/down staircases.

Most of the time it makes my character invisible and disables movement.

An easy temporary fix would be to detect if you're near a staircase and disable all button presses except for movement. But, that wouldn't be a good permanent fix.

erfg12 commented 5 years ago

A possible fix might be to go into the LoadGameLevel function and on the first line add:

if (invflag || spselflag)
    return;

Untested, just an idea.

rsn8887 commented 5 years ago

I just made a PR to fix this. It was trivial in the end.