- replaced MIN/MAX in all non-common code.
This commit is contained in:
parent
226666ce7f
commit
1d0aed219e
43 changed files with 147 additions and 146 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue