diff options
| author | Alexander Gavrilov | 2012-01-03 19:25:55 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-01-03 19:25:55 +0400 |
| commit | f8814909a95597ac05380f274361651a9ce8e499 (patch) | |
| tree | 53dc37f34c1a1acff1d6fdeaeaf8295101d863e6 /plugins/initflags.cpp | |
| parent | fb736a85567b643c900c5057490c3c568455de0b (diff) | |
| download | dfhack-f8814909a95597ac05380f274361651a9ce8e499.tar.gz dfhack-f8814909a95597ac05380f274361651a9ce8e499.tar.bz2 dfhack-f8814909a95597ac05380f274361651a9ce8e499.tar.xz | |
Move the MaterialInfo class to the main library.
Diffstat (limited to 'plugins/initflags.cpp')
| -rw-r--r-- | plugins/initflags.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/initflags.cpp b/plugins/initflags.cpp index 5671619e..c7a634b7 100644 --- a/plugins/initflags.cpp +++ b/plugins/initflags.cpp @@ -51,10 +51,7 @@ DFhackCExport command_result twaterlvl(Core * c, vector <string> & parameters) DFhackCExport command_result tidlers(Core * c, vector <string> & parameters) { // HOTKEY COMMAND: CORE ALREADY SUSPENDED - df::d_init_idlers iv = df::d_init_idlers(int(d_init->idlers) + 1); - if (!d_init_idlers::is_valid(iv)) - iv = ENUM_FIRST_ITEM(d_init_idlers); - d_init->idlers = iv; - c->con << "Toggled the display of idlers to " << ENUM_KEY_STR(d_init_idlers, iv) << endl; + d_init->idlers = ENUM_NEXT_ITEM(d_init_idlers, d_init->idlers); + c->con << "Toggled the display of idlers to " << ENUM_KEY_STR(d_init_idlers, d_init->idlers) << endl; return CR_OK; } |
