Fix "level finished" box going offscreen when maps have author names set.

(The extra 32px padding was NOT needed, after all)
This commit is contained in:
Mari the Deer 2024-08-24 21:16:37 +02:00
commit 0e57fc5572
2 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1143 \cu(Sat Aug 24 15:03:05 CEST 2024)\c-";
SWWM_SHORTVER="\cw1.3pre r1143 \cu(2024-08-24 15:03:05)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1145 \cu(Sat Aug 24 21:17:38 CEST 2024)\c-";
SWWM_SHORTVER="\cw1.3pre r1145 \cu(2024-08-24 21:17:38)\c-";

View file

@ -72,7 +72,7 @@ Class SWWMStatScreen : StatusScreen
int statheight = TewiFont.GetHeight()*(8+(!!wbs.partime)+(wbs.totaltime!=Plrs[me].stime))+32;
int lfheight = (authortexts[0]!="")?(MiniwiFont.GetHeight()+TewiFont.GetHeight()*2+TewiFontOutline.GetHeight()*2):(TewiFont.GetHeight()*2+TewiFontOutline.GetHeight()*2);
int elheight = (wbs.next=="")?0:((authortexts[1]!="")?(MiniwiFont.GetHeight()+TewiFont.GetHeight()*2+TewiFontOutline.GetHeight()*2):(TewiFont.GetHeight()*2+TewiFontOutline.GetHeight()*2));
topheight = (statheight+lfheight+elheight+32);
topheight = (statheight+lfheight+elheight);
mtipheight = (5*TewiFont.GetHeight()+32); // tips don't generally go past 5 lines in height
// defaults
lnamecolor = Font.CR_WHITE;