1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-24 05:17:17 +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);
reptilecheat = true; autocheat = true; firstland = laReptile;
}
else if(argis("-bright")) {
bright = true;
}
#if CAP_SDL
else if(argis("-pngshot")) {
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);
};
bool bright;
// how much to darken
int getfd(cell *c) {
if(bright) return 0;
switch(c->land) {
case laRedRock:
case laReptile: