1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 22:39:53 +00:00

you can no longer see mines by changing the color of waMineUnknown/waMineMine

This commit is contained in:
Zeno Rogue 2018-12-11 18:59:35 +01:00
parent 3f92da8dc5
commit 2c0cda9fa8
2 changed files with 4 additions and 1 deletions

View File

@ -1567,7 +1567,7 @@ void show_color_dialog() {
else if(c->item)
dialog::openColorDialog(iinf[c->item].color);
else if(c->wall)
dialog::openColorDialog(winf[c->wall].color);
dialog::openColorDialog(winf[c->wall == waMineMine ? waMineUnknown : c->wall].color);
else
dialog::openColorDialog(floorcolors[c->land]);
dialog::colorAlpha = false;

View File

@ -2749,6 +2749,9 @@ void setcolors(cell *c, color_t& wcol, color_t& fcol) {
wcol = fcol = winf[c->wall].color;
if(c->wall == waMineMine)
wcol = fcol = winf[waMineUnknown].color;
// water colors
if(isWateryOrBoat(c) || c->wall == waReptileBridge) {
if(c->land == laOcean)