mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 16:41:13 +00:00
- addressed incorrect ACS printbold implementation: For native Hexen maps it will now be correct, but all others will have to set a flag in MAPINFO's 'gameinfo' section to avoid problems with numerous ZDoom maps depending on the incorrect implementation.
This commit is contained in:
parent
b4fa95ab15
commit
c1de32896c
3 changed files with 6 additions and 1 deletions
|
@ -376,6 +376,7 @@ void FMapInfoParser::ParseGameInfo()
|
||||||
GAMEINFOKEY_BOOL(drawreadthis, "drawreadthis")
|
GAMEINFOKEY_BOOL(drawreadthis, "drawreadthis")
|
||||||
GAMEINFOKEY_BOOL(swapmenu, "swapmenu")
|
GAMEINFOKEY_BOOL(swapmenu, "swapmenu")
|
||||||
GAMEINFOKEY_BOOL(dontcrunchcorpses, "dontcrunchcorpses")
|
GAMEINFOKEY_BOOL(dontcrunchcorpses, "dontcrunchcorpses")
|
||||||
|
GAMEINFOKEY_BOOL(correctprintbold, "correctprintbold")
|
||||||
GAMEINFOKEY_BOOL(intermissioncounter, "intermissioncounter")
|
GAMEINFOKEY_BOOL(intermissioncounter, "intermissioncounter")
|
||||||
GAMEINFOKEY_BOOL(nightmarefast, "nightmarefast")
|
GAMEINFOKEY_BOOL(nightmarefast, "nightmarefast")
|
||||||
GAMEINFOKEY_COLOR(dimcolor, "dimcolor")
|
GAMEINFOKEY_COLOR(dimcolor, "dimcolor")
|
||||||
|
|
1
src/gi.h
1
src/gi.h
|
@ -114,6 +114,7 @@ struct gameinfo_t
|
||||||
bool nightmarefast;
|
bool nightmarefast;
|
||||||
bool swapmenu;
|
bool swapmenu;
|
||||||
bool dontcrunchcorpses;
|
bool dontcrunchcorpses;
|
||||||
|
bool correctprintbold;
|
||||||
TArray<FName> creditPages;
|
TArray<FName> creditPages;
|
||||||
TArray<FName> finalePages;
|
TArray<FName> finalePages;
|
||||||
TArray<FName> infoPages;
|
TArray<FName> infoPages;
|
||||||
|
|
|
@ -8765,6 +8765,9 @@ scriptwait:
|
||||||
if (pcd == PCD_ENDPRINTBOLD || screen == NULL ||
|
if (pcd == PCD_ENDPRINTBOLD || screen == NULL ||
|
||||||
screen->CheckLocalView (consoleplayer))
|
screen->CheckLocalView (consoleplayer))
|
||||||
{
|
{
|
||||||
|
if (pcd == PCD_ENDPRINTBOLD && (gameinfo.correctprintbold || (level.flags2 & LEVEL2_HEXENHACK)))
|
||||||
|
C_MidPrintBold(activefont, work);
|
||||||
|
else
|
||||||
C_MidPrint (activefont, work);
|
C_MidPrint (activefont, work);
|
||||||
}
|
}
|
||||||
STRINGBUILDER_FINISH(work);
|
STRINGBUILDER_FINISH(work);
|
||||||
|
|
Loading…
Reference in a new issue