Skip to content

Commit

Permalink
fixed comet trail colors again. closes #486
Browse files Browse the repository at this point in the history
  • Loading branch information
justbuchanan committed Feb 14, 2016
1 parent d057055 commit 08bf124
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions soccer/FieldView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,7 @@ void FieldView::drawTeamSpace(QPainter& p) {
// note: kv.first.first is 1 for our team and 2 for their team
bool ourTeam = kv.first.first == 1;
bool blue = frame->blue_team();
const QColor color = (ourTeam && blue) ? Qt::blue : (ourTeam && !blue)
? Qt::blue
: Qt::yellow;
const QColor color = (ourTeam ^ blue) ? Qt::yellow : Qt::blue;
QPen pen(color, cometTrailPenSize);
pen.setCapStyle(Qt::RoundCap);
p.setPen(pen);
Expand Down

0 comments on commit 08bf124

Please sign in to comment.