Skip to content

Commit

Permalink
Add two more minimap zoom levels
Browse files Browse the repository at this point in the history
  • Loading branch information
ldpl committed Mar 24, 2021
1 parent a55227a commit 6f8e0c1
Show file tree
Hide file tree
Showing 8 changed files with 2,046 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/citymania/cm_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include "cm_main.hpp"
#include "cm_hotkeys.hpp"
#include "cm_minimap.hpp"

#include "../smallmap_gui.h"
#include "../window_func.h"

#include "../safeguards.h"
Expand All @@ -22,7 +22,7 @@ void SwitchToMode(SwitchMode new_mode) {
}

void ToggleSmallMap() {
SmallMapWindow *w = dynamic_cast<SmallMapWindow*>(FindWindowById(WC_SMALLMAP, 0));
SmallMapWindow *w = dynamic_cast<citymania::SmallMapWindow*>(FindWindowById(WC_SMALLMAP, 0));
if (w == nullptr) ShowSmallMap();
delete w;
}
Expand Down

0 comments on commit 6f8e0c1

Please sign in to comment.