diff options
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 10 |
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() |