From 166e394e352f10fdf1b83d1a76dd283824d44666 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 2 Mar 2018 13:03:50 +0100 Subject: [PATCH] nomenu and nohelp options --- commandline.cpp | 6 ++++++ graph.cpp | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/commandline.cpp b/commandline.cpp index 34a0309c..ddcaf396 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -139,6 +139,12 @@ int arg::readCommon() { else if(argis("-nohud")) { nohud = true; } + else if(argis("-nomenu")) { + nomenukey = true; + } + else if(argis("-nohelp")) { + nohelp = true; + } else if(argis("-noscr")) { PHASE(3); popScreenAll(); diff --git a/graph.cpp b/graph.cpp index 74cc06d5..e8675630 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5552,6 +5552,8 @@ void gamescreen(int _darken) { #endif } +bool nohelp; + void normalscreen() { help = "@"; @@ -5628,7 +5630,8 @@ void drawscreen() { #if !ISMOBILE int col = linf[cwt.c->land].color; if(cwt.c->land == laRedRock) col = 0xC00000; - displayfr(vid.xres/2, vid.fsize, 2, vid.fsize, mouseovers, col, 8); + if(!nohelp) + displayfr(vid.xres/2, vid.fsize, 2, vid.fsize, mouseovers, col, 8); #endif drawmessages();