Dries390
Well-Known Member
- Joined
- Sep 8, 2007
- Messages
- 91
- Solutions
- 4
- Reaction score
- 70
Greetings and salutations everyone, this will be a very short post.
While messing around with my server ~6 months ago I noticed the OTClient minimap dissapears if you drag it out of bounds. This can be particularly annoying if you don't think ahead like me and end up with a map that starts near the border of the map. To fix this simply comment out the second or-statement
in minimap.cpp specifically void Minimap::draw(const Rect& screenRect, const Position& mapCenter, float scale, const Color& color) l.113.
I haven't played around with it too much but it seems like a very straightforward fix, if you find any problems; let me know!
While messing around with my server ~6 months ago I noticed the OTClient minimap dissapears if you drag it out of bounds. This can be particularly annoying if you don't think ahead like me and end up with a map that starts near the border of the map. To fix this simply comment out the second or-statement
C++:
if(MMBLOCK_SIZE*scale <= 1 /*|| !mapCenter.isMapPosition() THIS SHOULD BE COMMENTED OUT*/) {
g_painter->restoreSavedState();
return;
}
in minimap.cpp specifically void Minimap::draw(const Rect& screenRect, const Position& mapCenter, float scale, const Color& color) l.113.
I haven't played around with it too much but it seems like a very straightforward fix, if you find any problems; let me know!