diff options
| author | Alexander Gavrilov | 2012-01-24 15:36:30 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-01-24 15:36:30 +0400 |
| commit | 174d9d0739d7a0afc6b889eafc154b8b446dc932 (patch) | |
| tree | 6db67dd3f4a736ab443db178de48177e3e6dd0ce /plugins/deramp.cpp | |
| parent | 6adadb396eacbb2a631f796449fcbf35503168d2 (diff) | |
| download | dfhack-174d9d0739d7a0afc6b889eafc154b8b446dc932.tar.gz dfhack-174d9d0739d7a0afc6b889eafc154b8b446dc932.tar.bz2 dfhack-174d9d0739d7a0afc6b889eafc154b8b446dc932.tar.xz | |
Tweak showmood, add a few validity checks, commit a dfhack.init example.
Diffstat (limited to 'plugins/deramp.cpp')
| -rw-r--r-- | plugins/deramp.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/deramp.cpp b/plugins/deramp.cpp index 23339756..bc3e4b7a 100644 --- a/plugins/deramp.cpp +++ b/plugins/deramp.cpp @@ -33,6 +33,12 @@ DFhackCExport command_result df_deramp (Core * c, vector <string> & parameters) CoreSuspender suspend(c); + if (!Maps::IsValid()) + { + c->con.printerr("Map is not available!\n"); + return CR_FAILURE; + } + int count = 0; int countbad = 0; |
