fix colors

This commit is contained in:
gmueller 2011-01-04 22:26:37 +01:00
parent 436c5ad643
commit abb75acb91
1 changed files with 3 additions and 4 deletions

View File

@ -67,9 +67,9 @@ void setup_opengl() {
}
void setup_team(team *team, size_t id) {
team->color[0] = 1.0f * (id + 1 & (1 << 0));
team->color[1] = 1.0f * (id + 1 & (1 << 1));
team->color[2] = 1.0f * (id + 1 & (1 << 2));
team->color[0] = .5f + .5f * (id & (1 << 0));
team->color[1] = .5f + .5f * (id & (1 << 1));
team->color[2] = .5f + .5f * (id & (1 << 2));
team->color[3] = 1.0f;
team->x = 2000.0 * (id & (1 << 0));
@ -86,7 +86,6 @@ void setup_team(team *team, size_t id) {
team->players[i].vy = i * 5.;
team->players[i].vz = i * 5.;
}
}
void update_team(team *team, double dt) {