summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-05-20 17:26:29 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2011-05-20 17:26:29 +0200
commitf971e8903ae6e7f01adb7b2f252c6482fa258ebb (patch)
treedfafbd86d028515cdda0f77f77f11d14eeba6f1f /src/gui/viewport.cpp
parent108c31241aa8074dba1b1042677b3c87f60a9600 (diff)
downloadmana-f971e8903ae6e7f01adb7b2f252c6482fa258ebb.tar.gz
mana-f971e8903ae6e7f01adb7b2f252c6482fa258ebb.tar.bz2
mana-f971e8903ae6e7f01adb7b2f252c6482fa258ebb.tar.xz
mana-f971e8903ae6e7f01adb7b2f252c6482fa258ebb.zip
Removing KEY_PATHFIND and moving its function into the debug window
* The f-key is no longer used. That means new players are less likely to get into trouble by accidentally activating the debug mode. * The debug mode can now be activated in a new tab in the debug window. * The main advantage of using a gui is its extensibility. At the moment the debug mode does show too much information at once. In a follow-up patch the user should get more choices. Reviewed-by: Bjorn
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index cc316e88..427b539f 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -583,15 +583,11 @@ void Viewport::updateCursorType()
}
}
-void Viewport::toggleDebugPath()
+void Viewport::setShowDebugPath(int debugFlags)
{
- mShowDebugPath++;
- if (mShowDebugPath > Map::MAP_SPECIAL3)
- mShowDebugPath = Map::MAP_NORMAL;
+ mShowDebugPath = debugFlags;
if (mMap)
- {
- mMap->setDebugFlags(mShowDebugPath);
- }
+ mMap->setDebugFlags(debugFlags);
}
void Viewport::hideBeingPopup()