[Change] Planet colours are based on standing.
This commit is contained in:
parent
e72a896f72
commit
ef36411f81
@ -344,7 +344,6 @@ void player_render(void) {
|
|||||||
gui.radar.y - gl_screen.h/2., 0.);
|
gui.radar.y - gl_screen.h/2., 0.);
|
||||||
|
|
||||||
// Planets.
|
// Planets.
|
||||||
COLOUR(cFriend);
|
|
||||||
planets_minimap(gui.radar.res, gui.radar.w, gui.radar.h, gui.radar.shape);
|
planets_minimap(gui.radar.res, gui.radar.w, gui.radar.h, gui.radar.shape);
|
||||||
|
|
||||||
// Weapons.
|
// Weapons.
|
||||||
|
@ -83,6 +83,11 @@ void planets_minimap(const double res,
|
|||||||
|
|
||||||
glBegin(GL_POINTS);
|
glBegin(GL_POINTS);
|
||||||
for(i = 0; i < cur_system->nplanets; i++) {
|
for(i = 0; i < cur_system->nplanets; i++) {
|
||||||
|
if(areEnemies(player->faction, cur_system->planets[i].faction))
|
||||||
|
COLOUR(cHostile);
|
||||||
|
else if(areAllies(player->faction, cur_system->planets[i].faction))
|
||||||
|
COLOUR(cFriend);
|
||||||
|
else COLOUR(cNeutral);
|
||||||
r = (int)(cur_system->planets[i].gfx_space->sw / res);
|
r = (int)(cur_system->planets[i].gfx_space->sw / res);
|
||||||
cx = (int)((cur_system->planets[i].pos.x - player->solid->pos.x) / res);
|
cx = (int)((cur_system->planets[i].pos.x - player->solid->pos.x) / res);
|
||||||
cy = (int)((cur_system->planets[i].pos.y - player->solid->pos.y) / res);
|
cy = (int)((cur_system->planets[i].pos.y - player->solid->pos.y) / res);
|
||||||
|
Loading…
Reference in New Issue
Block a user