Merge branch 'dev'

This commit is contained in:
Allanis 2014-03-12 19:23:52 +00:00
commit 4fa17013f2

View File

@ -372,15 +372,20 @@ static void map_render(double bx, double by, double w, double h) {
if((hyperspace_target != -1) &&
(((cur_system == sys) && (j == hyperspace_target)) ||
((cur_system == &systems_stack[sys->jumps[j]]) &&
(sys == &systems_stack[cur_system->jumps[hyperspace_target]]))))
(sys==&systems_stack[cur_system->jumps[hyperspace_target]])))) {
if(player->fuel < HYPERSPACE_FUEL)
col = &cRed;
else
col = &cGreen;
}
else if((n > 0) && (m > 0)) {
if((n == 2) || (m == 2)) /* Out of fuel. */
col = &cRed;
else
col = &cYellow;
}
else col = &cDarkBlue;
else
col = &cDarkBlue;
glBegin(GL_LINE_STRIP);
ACOLOUR(*col, 0.);
tx = x + sys->pos.x * map_zoom;