diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-19 22:29:30 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-19 22:29:30 +0200 |
| commit | 2d7ef3fd487e9c9f05cadd42ca6916487f391b79 (patch) | |
| tree | f0bb1c74b8809cb9eb27b3e7821a337a50dcd0dd /pacman-c++/sceneholder.cpp | |
| parent | 7a5e71759c00b2c77f7ee3287c366dd1b48b81ca (diff) | |
| download | foop-2d7ef3fd487e9c9f05cadd42ca6916487f391b79.tar.gz foop-2d7ef3fd487e9c9f05cadd42ca6916487f391b79.tar.bz2 foop-2d7ef3fd487e9c9f05cadd42ca6916487f391b79.zip | |
Removed unnecessary code
Diffstat (limited to 'pacman-c++/sceneholder.cpp')
| -rw-r--r-- | pacman-c++/sceneholder.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pacman-c++/sceneholder.cpp b/pacman-c++/sceneholder.cpp index 37db691..feef033 100644 --- a/pacman-c++/sceneholder.cpp +++ b/pacman-c++/sceneholder.cpp | |||
| @@ -57,9 +57,8 @@ void SceneHolder::updateMap(const Transmission::map_t& map, const unsigned int x | |||
| 57 | { | 57 | { |
| 58 | GameEntity *oldItem = visualMap[x][y]; | 58 | GameEntity *oldItem = visualMap[x][y]; |
| 59 | /* special handling for purging field | 59 | /* special handling for purging field |
| 60 | * remove elements (in case it's not an actor) | ||
| 61 | */ | 60 | */ |
| 62 | if (oldItem != NULL && qgraphicsitem_cast<Actor *>(oldItem) == NULL) | 61 | if (oldItem != NULL) |
| 63 | { | 62 | { |
| 64 | visualMap[x][y] = NULL; | 63 | visualMap[x][y] = NULL; |
| 65 | Actor *actor = NULL; | 64 | Actor *actor = NULL; |
