From 34a6615fedb87247fc6ed47ca68ba7a75cb3327e Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 10 Nov 2019 22:25:39 +0100 Subject: [PATCH] Only show level up icon when there is space for it Thanks to @de4me for pointing this out and figuring out the height --- Source/scrollrt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/scrollrt.cpp b/Source/scrollrt.cpp index fb6f69382..5b11616c1 100644 --- a/Source/scrollrt.cpp +++ b/Source/scrollrt.cpp @@ -893,7 +893,8 @@ void DrawView(int StartX, int StartY) } else if (questlog) { DrawQuestLog(); } - if (!chrflag && plr[myplr]._pStatPts != 0 && !spselflag) { + if (!chrflag && plr[myplr]._pStatPts != 0 && !spselflag + && (!questlog || SCREEN_HEIGHT >= SPANEL_HEIGHT + PANEL_HEIGHT + 74 || SCREEN_WIDTH >= 4 * SPANEL_WIDTH)) { DrawLevelUpIcon(); } if (uitemflag) {