ArnoAnsems / CatacombGL

CatacombGL is a source port with OpenGL graphics for Catacomb 3D (1991), The Catacomb Abyss (1992), The Catacomb Armageddon (1992) and The Catacomb Apocalypse (1993).
GNU General Public License v3.0
147 stars 13 forks source link

Menu bug with chests #27

Closed nemesis-vampy closed 3 years ago

nemesis-vampy commented 3 years ago

In Catacomb Abyss 1.13 shareware, if the menu is opened after the player opens a chest, the player can move instead of being frozen in place while the items enter their inventory.

nemesis-vampy commented 3 years ago

I did some testing and figured out that I was wrong about the effects of the chest. It actually pauses the game, so I think the issue is that the menu un-pauses the game even while the chest's effect is active.

ArnoAnsems commented 3 years ago

Thanks for reporting this! I just reproduced the problem. When I pressed ESC while picking up a chest, I was still retrieving items from the chest AND got attacked by a zombie, all while the menu is visible. So that's indeed a bug. I checked the behavior on the original Catacomb Abyss with DOSBox. There it just ignores the ESC button while picking up a chest, That's not a solution I would prefer. I will fix it by really pausing the game when the menu is activated during chest pickup. When exiting the menu, it should resume with retrieving items from the chest.

ArnoAnsems commented 3 years ago

I've included a fix in version 0.5.1.