summaryrefslogtreecommitdiff
path: root/plugins/reveal.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2011-07-09 11:33:58 +0200
committerPetr Mrázek2011-07-09 11:33:58 +0200
commitd894ef0ffa6444167d6cf822521b51051b2ec89a (patch)
treea45f07de809910693abc16cdf669be2979abd122 /plugins/reveal.cpp
parent65d7278f53560da118695e451f063e71199e271b (diff)
downloaddfhack-d894ef0ffa6444167d6cf822521b51051b2ec89a.tar.gz
dfhack-d894ef0ffa6444167d6cf822521b51051b2ec89a.tar.bz2
dfhack-d894ef0ffa6444167d6cf822521b51051b2ec89a.tar.xz
Hotkey UI for linux.
Diffstat (limited to 'plugins/reveal.cpp')
-rw-r--r--plugins/reveal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/reveal.cpp b/plugins/reveal.cpp
index 1f1165ac..d3f91071 100644
--- a/plugins/reveal.cpp
+++ b/plugins/reveal.cpp
@@ -97,7 +97,7 @@ DFhackCExport command_result plugin_shutdown ( Core * c )
DFhackCExport command_result reveal(DFHack::Core * c, std::vector<std::string> & params)
{
bool no_hell = false;
- if(params[0] == "safe")
+ if(params.size() && params[0] == "safe")
{
no_hell = true;
}
@@ -177,7 +177,7 @@ DFhackCExport command_result reveal(DFHack::Core * c, std::vector<std::string> &
c->Resume();
dfout << "Map revealed." << std::endl;
if(!no_hell)
- dfout << "Unpausing can unleash the forces of hell, so it has been temporarily disabled!" << std::endl;
+ dfout << "Unpausing can unleash the forces of hell, so it has been temporarily disabled." << std::endl;
dfout << "Run 'unreveal' to revert to previous state." << std::endl;
return CR_OK;
}