1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

'-bright' option

This commit is contained in:
Zeno Rogue 2018-03-25 18:33:21 +02:00
parent 36775cb45c
commit 76ba4bb70c
2 changed files with 6 additions and 0 deletions

View File

@ -482,6 +482,9 @@ else if(args()[0] == '-' && args()[1] == x && args()[2] == '0') { showstartmenu
PHASEFROM(2); PHASEFROM(2);
reptilecheat = true; autocheat = true; firstland = laReptile; reptilecheat = true; autocheat = true; firstland = laReptile;
} }
else if(argis("-bright")) {
bright = true;
}
#if CAP_SDL #if CAP_SDL
else if(argis("-pngshot")) { else if(argis("-pngshot")) {
PHASE(3); shift(); PHASE(3); shift();

View File

@ -3320,8 +3320,11 @@ void qfloor_eswap(cell *c, const transmatrix& V, const hpcshape& sh, int col) {
qfloor(c, V, sh, col); qfloor(c, V, sh, col);
}; };
bool bright;
// how much to darken // how much to darken
int getfd(cell *c) { int getfd(cell *c) {
if(bright) return 0;
switch(c->land) { switch(c->land) {
case laRedRock: case laRedRock:
case laReptile: case laReptile: