- replaced MIN/MAX in all non-common code.

This commit is contained in:
Christoph Oelckers 2021-10-30 10:16:52 +02:00
commit 1d0aed219e
43 changed files with 147 additions and 146 deletions

View file

@ -620,7 +620,7 @@ void M_StartupEpisodeMenu(FNewGameStartup *gs)
if (*c == '$') c = GStrings(c + 1);
int textwidth = ld->mFont->StringWidth(c);
int textright = posx + textwidth;
if (posx + textright > 320) posx = std::max(0, 320 - textright);
if (posx + textright > 320) posx = max(0, 320 - textright);
}
for(unsigned i = 0; i < AllEpisodes.Size(); i++)
@ -1164,7 +1164,7 @@ void M_StartupSkillMenu(FNewGameStartup *gs)
if (*c == '$') c = GStrings(c + 1);
int textwidth = ld->mFont->StringWidth(c);
int textright = posx + textwidth;
if (posx + textright > 320) posx = std::max(0, 320 - textright);
if (posx + textright > 320) posx = max(0, 320 - textright);
}
unsigned firstitem = ld->mItems.Size();