diff --git a/polymer/eduke32/source/events_defs.h b/polymer/eduke32/source/events_defs.h index c0e12b934..a2c6bbe4e 100644 --- a/polymer/eduke32/source/events_defs.h +++ b/polymer/eduke32/source/events_defs.h @@ -106,6 +106,7 @@ enum GameEvent_t { EVENT_DISPLAYINACTIVEMENUREST, EVENT_CUTSCENE, EVENT_DISPLAYCURSOR, + EVENT_DISPLAYLEVELSTATS, #ifdef LUNATIC EVENT_ANIMATEALLSPRITES, #endif diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index dde921cc0..40c7bacfa 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -3841,7 +3841,7 @@ void G_DisplayRest(int32_t smoothratio) G_PrintFPS(); // JBF 20040124: display level stats in screen corner - if ((ud.overhead_on != 2 && ud.levelstats) && (g_player[myconnectindex].ps->gm&MODE_MENU) == 0) + if ((ud.overhead_on != 2 && ud.levelstats) && (g_player[myconnectindex].ps->gm&MODE_MENU) == 0 && VM_OnEvent(EVENT_DISPLAYLEVELSTATS, g_player[myconnectindex].ps->i, myconnectindex) == 0) { DukePlayer_t const * const myps = g_player[myconnectindex].ps; diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 45f6c32fa..8a7d14c66 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -671,6 +671,7 @@ const char *EventNames[MAXEVENTS] = "EVENT_DISPLAYINACTIVEMENUREST", "EVENT_CUTSCENE", "EVENT_DISPLAYCURSOR", + "EVENT_DISPLAYLEVELSTATS", #ifdef LUNATIC "EVENT_ANIMATEALLSPRITES", #endif diff --git a/polymer/eduke32/source/lunatic/con_lang.lua b/polymer/eduke32/source/lunatic/con_lang.lua index 367aec81e..1898212d0 100644 --- a/polymer/eduke32/source/lunatic/con_lang.lua +++ b/polymer/eduke32/source/lunatic/con_lang.lua @@ -178,11 +178,12 @@ EVENT = { EVENT_DISPLAYINACTIVEMENUREST = 98, EVENT_CUTSCENE = 99, EVENT_DISPLAYCURSOR = 100, + EVENT_DISPLAYLEVELSTATS = 101, -- EVENT_ANIMATEALLSPRITES = previous+1, -- internal -- KEEPINSYNC with MAXEVENTS below } -MAXEVENTS = 101 -- KEEPINSYNC with above EVENT_* list +MAXEVENTS = 102 -- KEEPINSYNC with above EVENT_* list -- NOTE: negated values are not exported to the ffi.C namespace or CON. -- See TWEAK_SFLAG below.