[Fix] Missing return statement prevented 'm' from also closing the map.
This commit is contained in:
parent
0421e2a43b
commit
23a982fbb5
@ -32,7 +32,10 @@ static void map_mouse(SDL_Event* event, double mx, double my);
|
|||||||
|
|
||||||
// Open the map window.
|
// Open the map window.
|
||||||
void map_open(void) {
|
void map_open(void) {
|
||||||
if(map_wid) map_close(NULL);
|
if(map_wid) {
|
||||||
|
map_close(NULL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Set the position to focus on current system.
|
// Set the position to focus on current system.
|
||||||
map_xpos = cur_system->pos.x;
|
map_xpos = cur_system->pos.x;
|
||||||
|
Loading…
Reference in New Issue
Block a user