[Change] Planet colours are based on standing.

This commit is contained in:
Allanis 2013-03-16 13:38:49 +00:00
parent e72a896f72
commit ef36411f81
2 changed files with 5 additions and 1 deletions

View File

@ -344,7 +344,6 @@ void player_render(void) {
gui.radar.y - gl_screen.h/2., 0.);
// Planets.
COLOUR(cFriend);
planets_minimap(gui.radar.res, gui.radar.w, gui.radar.h, gui.radar.shape);
// Weapons.

View File

@ -83,6 +83,11 @@ void planets_minimap(const double res,
glBegin(GL_POINTS);
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);
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);