|
12 | 12 | #include "modules/World.h" |
13 | 13 | #include "modules/MapCache.h" |
14 | 14 | #include "modules/Gui.h" |
| 15 | +#include "modules/Screen.h" |
15 | 16 |
|
16 | 17 | #include "df/block_square_event_frozen_liquidst.h" |
17 | 18 | #include "df/construction.h" |
@@ -184,16 +185,18 @@ command_result reveal(color_ostream &out, vector<string> & params) |
184 | 185 | else if(params[i] == "help" || params[i] == "?") |
185 | 186 | return CR_WRONG_USAGE; |
186 | 187 | } |
| 188 | + auto& con = out; |
187 | 189 | if(params.size() && params[0] == "hell") |
188 | 190 | { |
189 | 191 | no_hell = false; |
190 | 192 | } |
191 | 193 | if(params.size() && params[0] == "demon") |
192 | 194 | { |
193 | | - no_hell = false; |
194 | | - pause = false; |
| 195 | + con.printerr("`reveal demon` is currently disabled to prevent a hang due to a bug in the base game\n"); |
| 196 | + return CR_FAILURE; |
| 197 | + //no_hell = false; |
| 198 | + //pause = false; |
195 | 199 | } |
196 | | - auto & con = out; |
197 | 200 | if(revealed != NOT_REVEALED) |
198 | 201 | { |
199 | 202 | con.printerr("Map is already revealed or this is a different map.\n"); |
@@ -256,7 +259,14 @@ command_result reveal(color_ostream &out, vector<string> & params) |
256 | 259 | revealed = DEMON_REVEALED; |
257 | 260 | } |
258 | 261 | is_active = nopause_state || (revealed == REVEALED); |
| 262 | + bool graphics_mode = Screen::inGraphicsMode(); |
259 | 263 | con.print("Map revealed.\n"); |
| 264 | + if (graphics_mode) { |
| 265 | + con.print("Note that in graphics mode, tiles that are not adjacent to open\n" |
| 266 | + "space will not render but can still be examined by hovering over\n" |
| 267 | + "them with the mouse. Switching to text mode (in the game settings)\n" |
| 268 | + "will allow the display the revealed tiles.\n"); |
| 269 | + } |
260 | 270 | if(!no_hell) |
261 | 271 | con.print("Unpausing can unleash the forces of hell, so it has been temporarily disabled.\n"); |
262 | 272 | con.print("Run 'unreveal' to revert to previous state.\n"); |
|
0 commit comments