[Fix] Silly map bug.

This commit is contained in:
Allanis 2013-05-16 19:18:12 +01:00
parent 25adf125e4
commit b4d3bb72a8

View File

@ -214,10 +214,12 @@ static void map_render(double bx, double by, double w, double h) {
glShadeModel(GL_FLAT); glShadeModel(GL_FLAT);
} }
// Selected planet. // Selected planet.
sys = &systems_stack[map_selected]; if(map_selected != -1) {
COLOUR(cRed); sys = &systems_stack[map_selected];
gl_drawCircleInRect(x + sys->pos.x*map_zoom, y + sys->pos.y*map_zoom, COLOUR(cRed);
r+3., bx, by, w, h); gl_drawCircleInRect(x + sys->pos.x*map_zoom, y + sys->pos.y*map_zoom,
r+3., bx, by, w, h);
}
} }
// Map event handling. // Map event handling.
@ -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;