diff options
| author | Petr Mrázek | 2011-06-25 08:05:17 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-06-25 08:05:17 +0200 |
| commit | 722531f590a9f099b671c641d4c5afe3a2658b20 (patch) | |
| tree | 3c8115d78f53e7ea1ade8245b3a465c694a894a7 /plugins/reveal.cpp | |
| parent | 6fd7d42f0093ec5d057f35cd0a652c9ad254fc30 (diff) | |
| download | dfhack-722531f590a9f099b671c641d4c5afe3a2658b20.tar.gz dfhack-722531f590a9f099b671c641d4c5afe3a2658b20.tar.bz2 dfhack-722531f590a9f099b671c641d4c5afe3a2658b20.tar.xz | |
Added destructor code for PluginManager, console color reset funstion.
Diffstat (limited to 'plugins/reveal.cpp')
| -rw-r--r-- | plugins/reveal.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/reveal.cpp b/plugins/reveal.cpp index cd5ddd5c..e6ff7064 100644 --- a/plugins/reveal.cpp +++ b/plugins/reveal.cpp @@ -27,7 +27,6 @@ bool revealed = false; DFhackCExport command_result reveal(DFHack::Core * c, std::vector<std::string> & params); DFhackCExport command_result unreveal(DFHack::Core * c, std::vector<std::string> & params); DFhackCExport command_result revealtoggle(DFHack::Core * c, std::vector<std::string> & params); -//DFhackCExport command_result revealclear(DFHack::Core * c, std::vector<std::string> & params); DFhackCExport const char * plugin_name ( void ) { @@ -40,7 +39,6 @@ DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand> commands.push_back(PluginCommand("reveal","Reveal the map.",reveal)); commands.push_back(PluginCommand("unreveal","Revert the map to its previous state.",unreveal)); commands.push_back(PluginCommand("revealtoggle","Reveal/unreveal depending on state.",revealtoggle)); - //commands.push_back(PluginCommand("revealclear","Reset the reveal tool.",revealclear)); return CR_OK; } @@ -68,7 +66,6 @@ DFhackCExport command_result reveal(DFHack::Core * c, std::vector<std::string> & return CR_FAILURE; } - dfout << "Revealing, please wait..." << std::endl; Maps->getSize(x_max,y_max,z_max); hidesaved.reserve(x_max * y_max * z_max); for(uint32_t x = 0; x< x_max;x++) @@ -103,8 +100,7 @@ DFhackCExport command_result reveal(DFHack::Core * c, std::vector<std::string> & c->Resume(); dfout << "Map revealed. The game has been paused for you." << std::endl; dfout << "Unpausing can unleash the forces of hell!" << std::endl; - dfout << "Saving will make this state permanent. Don't do it." << std::endl << std::endl; - dfout << "Run 'reveal' again to revert to previous state." << std::endl; + dfout << "Run 'unreveal' to revert to previous state." << std::endl; return CR_OK; } @@ -139,7 +135,6 @@ DFhackCExport command_result unreveal(DFHack::Core * c, std::vector<std::string> // FIXME: add more sanity checks / MAP ID - dfout << "Unrevealing... please wait." << std::endl; for(size_t i = 0; i < hidesaved.size();i++) { hideblock & hb = hidesaved[i]; @@ -153,6 +148,7 @@ DFhackCExport command_result unreveal(DFHack::Core * c, std::vector<std::string> // give back memory. hidesaved.clear(); revealed = false; + dfout << "Map hidden!" << std::endl; c->Resume(); return CR_OK; } |
