Edern76 / DementiaRL

A WIP roguelike written with Python3/TDL set in a dark-fantasy universe.
Other
8 stars 3 forks source link

Trying to close window sometime results in the game switching to targetting mode. #18

Closed Edern76 closed 7 years ago

Edern76 commented 7 years ago

Sometimes, when clicking on the red cross in order to close the window, instead of properly closing down the game attempts to target a tile. It seems to happen after you already went into targetting mode a few times. Replacing while not tdl.event.isWindowClosed(): by while True: only seems to make it happen more often.

Edern76 commented 7 years ago

THis bug only seems to happen whn the game is in debug mode

Edern76 commented 7 years ago

Fixed by adding a not tdl.event.isWindowClosed() to the part of GetInput which calls CastCreateOrc(). I have no freaking idea why it is necessary but at least now it works. Issue closed.