From 52645afb4be3546850474f0f55e4b9685f5b38d9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 6 Dec 2016 22:42:10 +0100 Subject: [PATCH] - for the time being, make ZScript command line switch locked so that everybody understands that it's not ready for use in released mods yet. --- src/scripting/zscript/zcc_parser.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/scripting/zscript/zcc_parser.cpp b/src/scripting/zscript/zcc_parser.cpp index 44f72da28..b26ef3f39 100644 --- a/src/scripting/zscript/zcc_parser.cpp +++ b/src/scripting/zscript/zcc_parser.cpp @@ -414,7 +414,14 @@ void ParseScripts() while ((lump = Wads.FindLump("ZSCRIPT", &lastlump)) != -1) { DoParse(lump); + if (!Args->CheckParm("-zscript")) + { + return; + } } + Printf(TEXTCOLOR_PURPLE "WARNING!!!\n"); + Printf(TEXTCOLOR_PURPLE "As of this version, Zscript is still considered a feature in development which can change " TEXTCOLOR_RED "WITHOUT WARNING!!!\n"); + Printf(TEXTCOLOR_PURPLE "Use at your own risk!\n"); }