diff options
| author | Petr Mrázek | 2011-08-13 14:42:09 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-08-13 14:42:09 +0200 |
| commit | 81e6bce92ce0efd8dda1036a84a24655f8bbf82d (patch) | |
| tree | 7ea53d7f3c7b013c5042ead5b350ef64ed2c4982 /plugins/weather.cpp | |
| parent | 1cbcb99dd53a9236e1e008ed8a4447296973e399 (diff) | |
| download | dfhack-81e6bce92ce0efd8dda1036a84a24655f8bbf82d.tar.gz dfhack-81e6bce92ce0efd8dda1036a84a24655f8bbf82d.tar.bz2 dfhack-81e6bce92ce0efd8dda1036a84a24655f8bbf82d.tar.xz | |
Command history separated from Console.
Diffstat (limited to 'plugins/weather.cpp')
| -rw-r--r-- | plugins/weather.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/weather.cpp b/plugins/weather.cpp index 76757b25..d01bfcb7 100644 --- a/plugins/weather.cpp +++ b/plugins/weather.cpp @@ -23,10 +23,7 @@ DFhackCExport const char * plugin_name ( void ) DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand> &commands) { commands.clear(); - commands.push_back(PluginCommand("weather", - "Print the weather map or change weather.\ -\n Options: 'snow' = make it snow, 'rain' = make it rain.\ -\n 'clear' = clear the sky",weather)); + commands.push_back(PluginCommand("weather", "Print the weather map or change weather.",weather)); return CR_OK; } @@ -61,7 +58,13 @@ DFhackCExport command_result weather (Core * c, vector <string> & parameters) } if(help) { - + c->con.print("Prints the current weather map by default.\n" + "Options:\n" + "snow - make it snow everywhere.\n" + "rain - make it rain.\n" + "clear - clear the sky.\n" + ); + return CR_OK; } if(lock && unlock) { |
