diff options
| author | manuel <manuel@mausz.at> | 2011-04-17 19:54:02 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-17 19:54:02 +0200 |
| commit | 19c9c38d28cdaafcc1b496027f53dcd1914037cf (patch) | |
| tree | 416d1efa5ed1dd9fdcea55cb5794fdb25d3bbb87 /pacman-c++/bonuspoint.cpp | |
| parent | 65195fdab6262d31056c74f922376de3b009943c (diff) | |
| download | foop-19c9c38d28cdaafcc1b496027f53dcd1914037cf.tar.gz foop-19c9c38d28cdaafcc1b496027f53dcd1914037cf.tar.bz2 foop-19c9c38d28cdaafcc1b496027f53dcd1914037cf.zip | |
get rid of two dynamic_casts and use qgraphicitem_cast which is A LOT faster (it makes use of static casts)
Diffstat (limited to 'pacman-c++/bonuspoint.cpp')
| -rw-r--r-- | pacman-c++/bonuspoint.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pacman-c++/bonuspoint.cpp b/pacman-c++/bonuspoint.cpp index 6e1c9d0..8cb8c7e 100644 --- a/pacman-c++/bonuspoint.cpp +++ b/pacman-c++/bonuspoint.cpp | |||
| @@ -12,6 +12,8 @@ namespace | |||
| 12 | BonusPoint::BonusPoint(QGraphicsItem *parent) | 12 | BonusPoint::BonusPoint(QGraphicsItem *parent) |
| 13 | : GameEntity(parent) | 13 | : GameEntity(parent) |
| 14 | { | 14 | { |
| 15 | m_type = Type; | ||
| 16 | |||
| 15 | /* empty object for servers */ | 17 | /* empty object for servers */ |
| 16 | if (Constants::server) | 18 | if (Constants::server) |
| 17 | return; | 19 | return; |
