diff options
| author | manuel <manuel@mausz.at> | 2011-04-06 15:15:03 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-06 15:15:03 +0200 |
| commit | cbc0da21f393dc7bf2a11beaf1314c9dcaeb0999 (patch) | |
| tree | 534fee860ef8f0064425f98bbbb1febb7335f820 /pacman-c++/bonuspoint.cpp | |
| parent | 2b3210e6d19e32b7746e0e1cdf22035ce508ca8a (diff) | |
| parent | dce91729ff119ce6e00340f67297ca9e3e72110c (diff) | |
| download | foop-cbc0da21f393dc7bf2a11beaf1314c9dcaeb0999.tar.gz foop-cbc0da21f393dc7bf2a11beaf1314c9dcaeb0999.tar.bz2 foop-cbc0da21f393dc7bf2a11beaf1314c9dcaeb0999.zip | |
Merge branch 'master' of ssh://manuel.mausz.at/foop
Conflicts:
pacman-c++/actor.cpp
pacman-c++/constants.h
pacman-c++/mainwidget.cpp
Diffstat (limited to 'pacman-c++/bonuspoint.cpp')
| -rw-r--r-- | pacman-c++/bonuspoint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pacman-c++/bonuspoint.cpp b/pacman-c++/bonuspoint.cpp index 8ebc195..0517c64 100644 --- a/pacman-c++/bonuspoint.cpp +++ b/pacman-c++/bonuspoint.cpp | |||
| @@ -17,5 +17,5 @@ BonusPoint::BonusPoint(QGraphicsItem *parent) | |||
| 17 | setPixmap(*pixmap); | 17 | setPixmap(*pixmap); |
| 18 | 18 | ||
| 19 | int rand = (int) (BONUSPOINTS_NUM_SPRITES * (qrand() / (RAND_MAX + 1.0))); | 19 | int rand = (int) (BONUSPOINTS_NUM_SPRITES * (qrand() / (RAND_MAX + 1.0))); |
| 20 | setSprite(rand * 20 + SPRITE_MARGIN, SPRITE_MARGIN, SPRITE_WIDTH, SPRITE_HEIGHT); | 20 | setSprite(rand * 20 + Constants::sprite_margin, Constants::sprite_margin, Constants::field_size.width, Constants::field_size.height); |
| 21 | } | 21 | } |
