[Fix] Silly map bug.
This commit is contained in:
parent
25adf125e4
commit
b4d3bb72a8
@ -214,11 +214,13 @@ static void map_render(double bx, double by, double w, double h) {
|
|||||||
glShadeModel(GL_FLAT);
|
glShadeModel(GL_FLAT);
|
||||||
}
|
}
|
||||||
// Selected planet.
|
// Selected planet.
|
||||||
|
if(map_selected != -1) {
|
||||||
sys = &systems_stack[map_selected];
|
sys = &systems_stack[map_selected];
|
||||||
COLOUR(cRed);
|
COLOUR(cRed);
|
||||||
gl_drawCircleInRect(x + sys->pos.x*map_zoom, y + sys->pos.y*map_zoom,
|
gl_drawCircleInRect(x + sys->pos.x*map_zoom, y + sys->pos.y*map_zoom,
|
||||||
r+3., bx, by, w, h);
|
r+3., bx, by, w, h);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Map event handling.
|
// Map event handling.
|
||||||
static void map_mouse(SDL_Event* event, double mx, double my) {
|
static void map_mouse(SDL_Event* event, double mx, double my) {
|
||||||
@ -333,6 +335,7 @@ void map_clear(void) {
|
|||||||
void map_jump(void) {
|
void map_jump(void) {
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
|
map_selected = -1;
|
||||||
map_xpos = cur_system->pos.x;
|
map_xpos = cur_system->pos.x;
|
||||||
map_ypos = cur_system->pos.y;
|
map_ypos = cur_system->pos.y;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user