Allow Lua to disable the emeralds that appear in the Special Stage intermission.

This commit is contained in:
GoldenTails 2020-12-14 01:23:57 -06:00
parent d71b99a56b
commit 6c4e7e13e0
3 changed files with 3 additions and 0 deletions

View file

@ -38,6 +38,7 @@ enum hud {
// Intermission
hud_intermissiontally,
hud_intermissionmessages,
hud_intermissionemeralds,
hud_MAX
};

View file

@ -64,6 +64,7 @@ static const char *const hud_disable_options[] = {
"intermissiontally",
"intermissionmessages",
"intermissionemeralds",
NULL};
enum hudinfo {

View file

@ -638,6 +638,7 @@ void Y_IntermissionDrawer(void)
// draw the emeralds
//if (intertic & 1)
if (LUA_HudEnabled(hud_intermissionemeralds))
{
boolean drawthistic = !(ALL7EMERALDS(emeralds) && (intertic & 1));
INT32 emeraldx = 152 - 3*28;