Fix tweak fps-min

develop
lethosor 2015-05-08 17:35:46 -04:00
parent 9c404a535d
commit d0ba6d7019
2 changed files with 3 additions and 1 deletions

@ -17,6 +17,7 @@ DFHack Future
Lua's os.system() now works on OS X
Fixed default arguments in Lua gametype detection functions
gui/hack-wish now properly assigns quality to items.
tweak fps-min fixed
Misc Improvements
"keybinding list" accepts a context
nyan: Can now be stopped with dfhack-run

@ -130,6 +130,7 @@ static std::multimap<std::string, tweak_onupdate_hookst> tweak_onupdate_hooks;
DFhackCExport command_result plugin_init (color_ostream &out, std::vector <PluginCommand> &commands)
{
is_enabled = true; // Allow plugin_onupdate to work (subcommands are enabled individually)
commands.push_back(PluginCommand(
"tweak", "Various tweaks for minor bugs.", tweak, false,
" tweak clear-missing\n"
@ -694,7 +695,7 @@ static command_result enable_tweak(string tweak, color_ostream &out, vector <str
{
bool state = (vector_get(parameters, 1) != "disable");
recognized = true;
tweak_onupdate_hookst hook = it->second;
tweak_onupdate_hookst &hook = it->second;
hook.enabled = state;
out.print("%s tweak %s (%s)\n", state ? "Enabled" : "Disabled", cmd.c_str(), hook.name.c_str());
}