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++/point.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++/point.cpp')
| -rw-r--r-- | pacman-c++/point.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp index 7be09c0..2257b12 100644 --- a/pacman-c++/point.cpp +++ b/pacman-c++/point.cpp | |||
| @@ -10,6 +10,8 @@ namespace | |||
| 10 | Point::Point(QGraphicsItem *parent) | 10 | Point::Point(QGraphicsItem *parent) |
| 11 | : GameEntity(parent) | 11 | : GameEntity(parent) |
| 12 | { | 12 | { |
| 13 | m_type = Type; | ||
| 14 | |||
| 13 | /* empty object for servers */ | 15 | /* empty object for servers */ |
| 14 | if (Constants::server) | 16 | if (Constants::server) |
| 15 | return; | 17 | return; |
