From 76ba4bb70ce990b074ed81cc8d411bed738d4145 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 25 Mar 2018 18:33:21 +0200 Subject: [PATCH] '-bright' option --- commandline.cpp | 3 +++ graph.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/commandline.cpp b/commandline.cpp index ddcaf396..58952bfb 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -482,6 +482,9 @@ else if(args()[0] == '-' && args()[1] == x && args()[2] == '0') { showstartmenu PHASEFROM(2); reptilecheat = true; autocheat = true; firstland = laReptile; } + else if(argis("-bright")) { + bright = true; + } #if CAP_SDL else if(argis("-pngshot")) { PHASE(3); shift(); diff --git a/graph.cpp b/graph.cpp index bc72c025..ee2d6c41 100644 --- a/graph.cpp +++ b/graph.cpp @@ -3320,8 +3320,11 @@ void qfloor_eswap(cell *c, const transmatrix& V, const hpcshape& sh, int col) { qfloor(c, V, sh, col); }; +bool bright; + // how much to darken int getfd(cell *c) { + if(bright) return 0; switch(c->land) { case laRedRock: case laReptile: