From 6617294c2d7222d8c3011d31ecf28a1c943e2860 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 25 Oct 2017 10:33:18 +0300 Subject: [PATCH] Added ZScript functions GetBool() and SetBool() to CVar class --- wadsrc/static/zscript/base.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wadsrc/static/zscript/base.txt b/wadsrc/static/zscript/base.txt index 5575f3d0c..0d0261a75 100644 --- a/wadsrc/static/zscript/base.txt +++ b/wadsrc/static/zscript/base.txt @@ -302,9 +302,11 @@ struct CVar native native static CVar FindCVar(Name name); native static CVar GetCVar(Name name, PlayerInfo player = null); + bool GetBool() { return GetInt(); } native int GetInt(); native double GetFloat(); native String GetString(); + void SetBool(bool b) { SetInt(b); } native void SetInt(int v); native void SetFloat(double v); native void SetString(String s);