[Fix] Slight graphical bug in map that VLack complained about, and I thing @medek.
This commit is contained in:
parent
39871138e6
commit
91aa3268c0
@ -189,9 +189,10 @@ static void map_render(double bx, double by, double w, double h) {
|
|||||||
// calculating from x to y the line must go. :)
|
// calculating from x to y the line must go. :)
|
||||||
for(j = 0; j < sys->njumps; j++) {
|
for(j = 0; j < sys->njumps; j++) {
|
||||||
// Set the colours, is the route the current one?
|
// Set the colours, is the route the current one?
|
||||||
if(((cur_system == sys) && (j == hyperspace_target)) ||
|
if((hyperspace_target != -1) &&
|
||||||
((cur_system == &systems_stack[sys->jumps[j]]) &&
|
(((cur_system == sys) && (j == hyperspace_target)) ||
|
||||||
(sys = &systems_stack[cur_system->jumps[hyperspace_target]])))
|
((cur_system == &systems_stack[sys->jumps[j]]) &&
|
||||||
|
(sys == &systems_stack[cur_system->jumps[hyperspace_target]]))))
|
||||||
col = &cRed;
|
col = &cRed;
|
||||||
// Is the route part of the path?
|
// Is the route part of the path?
|
||||||
else if(map_inPath(&systems_stack[sys->jumps[j]]) && map_inPath(sys))
|
else if(map_inPath(&systems_stack[sys->jumps[j]]) && map_inPath(sys))
|
||||||
|
Loading…
Reference in New Issue
Block a user