summaryrefslogtreecommitdiffhomepage
path: root/digital/io-hub/src/apbirthday/gifts.hh
diff options
context:
space:
mode:
Diffstat (limited to 'digital/io-hub/src/apbirthday/gifts.hh')
-rw-r--r--digital/io-hub/src/apbirthday/gifts.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/digital/io-hub/src/apbirthday/gifts.hh b/digital/io-hub/src/apbirthday/gifts.hh
index f6d7e1ee..453b03e7 100644
--- a/digital/io-hub/src/apbirthday/gifts.hh
+++ b/digital/io-hub/src/apbirthday/gifts.hh
@@ -38,8 +38,9 @@ class Gifts
/// Update gifts positions according to team color.
void compute_pos ()
{
+ int sign = team_color ? -1 : 1;
for (int i = 0; i < nb; i++)
- x[i] = pg_x (600 * (i + 1) - pg_gift_width / 2);
+ x[i] = 600 * (i + 1) + sign * pg_gift_width / 2;
}
public:
/// Number of gifts.