1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 17:40:36 +00:00

fixed context help getting stuck in corner stats mode

This commit is contained in:
Zeno Rogue 2023-01-08 14:37:10 +01:00
parent 5f3c58154c
commit ce93910f0f

View File

@ -440,6 +440,7 @@ EX void drawStats() {
first_cell_to_draw = true; first_cell_to_draw = true;
bool h = hide_player(); bool h = hide_player();
instat = false;
bool cornermode = (vid.xres > vid.yres * 85/100 && vid.yres > vid.xres * 85/100); bool cornermode = (vid.xres > vid.yres * 85/100 && vid.yres > vid.xres * 85/100);
@ -527,7 +528,6 @@ EX void drawStats() {
else { else {
instat = false;
bool portrait = vid.xres < vid.yres; bool portrait = vid.xres < vid.yres;
int colspace = portrait ? (current_display->ycenter - current_display->scrsize - 3 * vid.fsize) : (vid.xres - vid.yres - 16) / 2; int colspace = portrait ? (current_display->ycenter - current_display->scrsize - 3 * vid.fsize) : (vid.xres - vid.yres - 16) / 2;
int rowspace = portrait ? vid.xres - 16 : vid.yres - vid.fsize * (vid.msgleft ? 9 : 4); int rowspace = portrait ? vid.xres - 16 : vid.yres - vid.fsize * (vid.msgleft ? 9 : 4);