diff options
| author | manuel <manuel@mausz.at> | 2011-04-12 21:32:44 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-12 21:32:44 +0200 |
| commit | 26c2af49cc410b7bd2ea6017a5454381087e960b (patch) | |
| tree | 8dd9782767729b4edab0132d673b2c6807d4f406 /pacman-c++/sceneholder.cpp | |
| parent | 6af8e7795da1e86745364af1538fa76d4e0fc07e (diff) | |
| download | foop-26c2af49cc410b7bd2ea6017a5454381087e960b.tar.gz foop-26c2af49cc410b7bd2ea6017a5454381087e960b.tar.bz2 foop-26c2af49cc410b7bd2ea6017a5454381087e960b.zip | |
- socket.write returns signed integer
- make waka sound working
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 | } |
