fix colors
This commit is contained in:
parent
436c5ad643
commit
abb75acb91
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user