diff options
Diffstat (limited to 'pacman-c++/sceneholder.cpp')
| -rw-r--r-- | pacman-c++/sceneholder.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pacman-c++/sceneholder.cpp b/pacman-c++/sceneholder.cpp index 6879ea1..578b0df 100644 --- a/pacman-c++/sceneholder.cpp +++ b/pacman-c++/sceneholder.cpp | |||
| @@ -138,14 +138,14 @@ void SceneHolder::updateMap(const Transmission::map_t& map, const unsigned int x | |||
| 138 | Actor::Movement direction = Util::transmissionMovementToActor( | 138 | Actor::Movement direction = Util::transmissionMovementToActor( |
| 139 | cur & Transmission::direction_mask); | 139 | cur & Transmission::direction_mask); |
| 140 | /* WARNING: do NOT add actor to visualMap as visualMap-items may | 140 | /* WARNING: do NOT add actor to visualMap as visualMap-items may |
| 141 | * get deleted during update and actors are referenced in_mactors too | 141 | * get deleted during update and actors are referenced in_mactors too |
| 142 | * if you REALLY need that you need to changed updateMap so that all actors | 142 | * if you REALLY need that you need to changed updateMap so that all actors |
| 143 | * will be moved before any new items get allocated (totally untested) | 143 | * will be moved before any new items get allocated (totally untested) |
| 144 | */ | 144 | */ |
| 145 | actor->move(direction); | 145 | actor->move(direction); |
| 146 | /* that's kind a hack but working right now | 146 | /* that's kind a hack but working right now |
| 147 | * I think that will fall on our's hat sooner or later | 147 | * I think that will fall on our's hat sooner or later |
| 148 | */ | 148 | */ |
| 149 | if (!(cur & Transmission::empty)) | 149 | if (!(cur & Transmission::empty)) |
| 150 | actor->stopEating(); | 150 | actor->stopEating(); |
| 151 | qDebug() << "[SceneUpdate] actor moves: color=" << color | 151 | qDebug() << "[SceneUpdate] actor moves: color=" << color |
