diff options
| author | manuel <manuel@mausz.at> | 2011-04-18 01:43:28 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-18 01:43:28 +0200 |
| commit | e373442901064d07791c9739daa380acb1dfbb8c (patch) | |
| tree | 084853c769579a321e5bfb3d1861720d6f887e3e /pacman-c++/sceneholder.cpp | |
| parent | 479818cfae62809788367fb04db1f9d6a509b498 (diff) | |
| download | foop-e373442901064d07791c9739daa380acb1dfbb8c.tar.gz foop-e373442901064d07791c9739daa380acb1dfbb8c.tar.bz2 foop-e373442901064d07791c9739daa380acb1dfbb8c.zip | |
few bot improvements
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 |
