diff options
Diffstat (limited to 'pacman-c++/sceneholder.cpp')
| -rw-r--r-- | pacman-c++/sceneholder.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pacman-c++/sceneholder.cpp b/pacman-c++/sceneholder.cpp index f44f767..d9e07e5 100644 --- a/pacman-c++/sceneholder.cpp +++ b/pacman-c++/sceneholder.cpp | |||
| @@ -113,9 +113,14 @@ void SceneHolder::updateMap(const Transmission::map_t& map) | |||
| 113 | } | 113 | } |
| 114 | else | 114 | else |
| 115 | { | 115 | { |
| 116 | Actor::Movement direction = | 116 | Actor::Movement direction = Util::transmissionMovementToActor( |
| 117 | Util::transmissionMovementToActor(cur & Transmission::direction_mask); | 117 | cur & Transmission::direction_mask); |
| 118 | actor->move(direction); | 118 | actor->move(direction); |
| 119 | /* that's kind a hack but working right now | ||
| 120 | * I think that will fall on our's hat sooner or later | ||
| 121 | */ | ||
| 122 | if (!(cur & Transmission::empty)) | ||
| 123 | actor->stopEating(); | ||
| 119 | qDebug() << "[SceneUpdate] actor moves: color=" << color | 124 | qDebug() << "[SceneUpdate] actor moves: color=" << color |
| 120 | << "direction=" << direction << "newpos=" << QPoint(x, y); | 125 | << "direction=" << direction << "newpos=" << QPoint(x, y); |
| 121 | } | 126 | } |
