summaryrefslogtreecommitdiff
path: root/plugins/fastdwarf.cpp
diff options
context:
space:
mode:
authorexpwnent2012-09-28 16:36:37 -0400
committerexpwnent2012-09-28 16:36:37 -0400
commit79ac1a81b9c2751c162fc413c91ef0ee84766d01 (patch)
tree31058f3e0d5c6df6d29276f12aeda048242c186b /plugins/fastdwarf.cpp
parent76cd941084f952a226a0a7777fe72b085f790707 (diff)
downloaddfhack-79ac1a81b9c2751c162fc413c91ef0ee84766d01.tar.gz
dfhack-79ac1a81b9c2751c162fc413c91ef0ee84766d01.tar.bz2
dfhack-79ac1a81b9c2751c162fc413c91ef0ee84766d01.tar.xz
It was backwards when calling fastdwarf with just one argument. Also made it print the current status of fastdwarf when no arguments are given.
Diffstat (limited to 'plugins/fastdwarf.cpp')
-rw-r--r--plugins/fastdwarf.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/fastdwarf.cpp b/plugins/fastdwarf.cpp
index c51684ae..400bff23 100644
--- a/plugins/fastdwarf.cpp
+++ b/plugins/fastdwarf.cpp
@@ -72,10 +72,10 @@ static command_result fastdwarf (color_ostream &out, vector <string> & parameter
{
if (parameters.size() == 1) {
if ( parameters[0] == "0" ) {
- enable_fastdwarf = true;
+ enable_fastdwarf = false;
enable_teledwarf = false;
} else if ( parameters[0] == "1" ) {
- enable_fastdwarf = false;
+ enable_fastdwarf = true;
enable_teledwarf = false;
} else {
out.print("Incorrect usage.\n");
@@ -100,6 +100,7 @@ static command_result fastdwarf (color_ostream &out, vector <string> & parameter
}
} else if (parameters.size() == 0) {
//print status
+ out.print("Current state: fast = %d, teleport = %d.\n", enable_fastdwarf, enable_teledwarf);
} else {
out.print("Incorrect usage.\n");
return CR_OK;