diff options
| author | Quietust | 2012-01-24 10:54:12 -0600 |
|---|---|---|
| committer | Quietust | 2012-01-24 10:54:12 -0600 |
| commit | 466bf89578726d6458c30d76a9e637844802f084 (patch) | |
| tree | 6b13226dc67c63bf457cd0fa14bab814683f34e5 /plugins/showmood.cpp | |
| parent | 1ca90de647d9d0adc727279bf516ebed4087e15b (diff) | |
| download | dfhack-466bf89578726d6458c30d76a9e637844802f084.tar.gz dfhack-466bf89578726d6458c30d76a9e637844802f084.tar.bz2 dfhack-466bf89578726d6458c30d76a9e637844802f084.tar.xz | |
Goodbye, Translation module
Diffstat (limited to 'plugins/showmood.cpp')
| -rw-r--r-- | plugins/showmood.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/showmood.cpp b/plugins/showmood.cpp index 464860d9..dad10efa 100644 --- a/plugins/showmood.cpp +++ b/plugins/showmood.cpp @@ -22,6 +22,7 @@ using std::string; using std::vector; using namespace DFHack; +using namespace DFHack::Simple; using namespace df::enums; using df::global::world; @@ -31,8 +32,6 @@ DFhackCExport command_result df_showmood (Core * c, vector <string> & parameters if (!parameters.empty()) return CR_WRONG_USAGE; - Translation *trans = c->getTranslation(); - trans->Start(); CoreSuspender suspend(c); bool found = false; @@ -62,7 +61,7 @@ DFhackCExport command_result df_showmood (Core * c, vector <string> & parameters c->con.printerr("Dwarf with strange mood does not have a mood type!\n"); continue; } - c->con.print("%s %s is currently ", unit->name.first_name.c_str(), trans->TranslateName(&unit->name, false).c_str()); + c->con.print("%s %s is currently ", unit->name.first_name.c_str(), Translation::TranslateName(&unit->name, false).c_str()); switch (unit->mood) { case mood_type::Macabre: @@ -255,7 +254,6 @@ DFhackCExport command_result df_showmood (Core * c, vector <string> & parameters c->con.print(", quantity %i\n", item->quantity); } } - trans->Finish(); if (!found) c->con.print("No strange moods currently active.\n"); |
