From 2ce5b49cabbad444938a6d3b3685c0556144f129 Mon Sep 17 00:00:00 2001 From: Player701 <{ID}+{username}@users.noreply.github.com> Date: Mon, 6 Dec 2021 16:51:19 +0300 Subject: [PATCH] - Exported the "paused" global variable to ZScript --- src/g_game.cpp | 1 + wadsrc/static/zscript/engine/base.zs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/g_game.cpp b/src/g_game.cpp index dac60dbf34..f38a21b3e3 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -3140,3 +3140,4 @@ DEFINE_GLOBAL(demoplayback) DEFINE_GLOBAL(automapactive); DEFINE_GLOBAL(Net_Arbitrator); DEFINE_GLOBAL(netgame); +DEFINE_GLOBAL(paused); diff --git a/wadsrc/static/zscript/engine/base.zs b/wadsrc/static/zscript/engine/base.zs index d4b8964668..41bdb07f9d 100644 --- a/wadsrc/static/zscript/engine/base.zs +++ b/wadsrc/static/zscript/engine/base.zs @@ -183,6 +183,7 @@ struct _ native // These are the global variables, the struct is only here to av native MenuDelegateBase menuDelegate; native readonly int consoleplayer; native readonly double NotifyFontScale; + native readonly int paused; } struct System native @@ -202,7 +203,6 @@ struct System native } return false; } - } struct MusPlayingInfo native