From ee91cf77e4db25e97638eaaab527ded39d9083ab Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Fri, 23 Nov 2018 20:50:56 +0100 Subject: [PATCH] expose defaultbloodcolor to ZScript. --- src/gi.cpp | 2 +- wadsrc/static/zscript/base.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gi.cpp b/src/gi.cpp index 87c8b68cf9..4edb2420fe 100644 --- a/src/gi.cpp +++ b/src/gi.cpp @@ -61,7 +61,7 @@ DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, statusscreen_single) DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, statusscreen_coop) DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, statusscreen_dm) DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, mSliderColor) - +DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, defaultbloodcolor) const char *GameNames[17] = { diff --git a/wadsrc/static/zscript/base.txt b/wadsrc/static/zscript/base.txt index 2576ea9b20..411746035f 100644 --- a/wadsrc/static/zscript/base.txt +++ b/wadsrc/static/zscript/base.txt @@ -366,6 +366,7 @@ struct GameInfoStruct native native double gibfactor; native bool intermissioncounter; native Name mSliderColor; + native Color defaultbloodcolor; } class Object native