zenorogue / hyperrogue

A SDL roguelike in a non-euclidean world
GNU General Public License v2.0
554 stars 66 forks source link

Reset hr::instat in drawStats() if cornermode is enabled. #330

Closed jlmjlm closed 1 year ago

jlmjlm commented 1 year ago

This appears to fix a bug where the HUD's north-of-map text gets stuck in "Press F1 or right click for help".

To reproduce:

Expected behavior is that the description text on the HUD's north edge gives descriptions of the land.

The behavior appears to be correct after this is applied, but this is the first time I've investigated the logic setting and resetting hr::instat, so I'm not positive that it should always be reset here.

zenorogue commented 1 year ago

Thanks for the diagnosis! I believe I have used it to write an independent fix (not noticing the PR), so this should be closed.