diff options
Diffstat (limited to 'pacman-c++/util.cpp')
| -rw-r--r-- | pacman-c++/util.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pacman-c++/util.cpp b/pacman-c++/util.cpp index 708d005..070c716 100644 --- a/pacman-c++/util.cpp +++ b/pacman-c++/util.cpp | |||
| @@ -90,7 +90,7 @@ namespace Util | |||
| 90 | QList<QPoint> actors; | 90 | QList<QPoint> actors; |
| 91 | for(unsigned int i = 0; i < players; ++i) | 91 | for(unsigned int i = 0; i < players; ++i) |
| 92 | { | 92 | { |
| 93 | /* first remove formally placed actors from map */ | 93 | /* first remove formerly placed actors from map */ |
| 94 | foreach(QPoint pos, actors) | 94 | foreach(QPoint pos, actors) |
| 95 | map[pos.x()][pos.y()] = Transmission::none; | 95 | map[pos.x()][pos.y()] = Transmission::none; |
| 96 | actors.clear(); | 96 | actors.clear(); |
| @@ -144,10 +144,11 @@ namespace Util | |||
| 144 | for (unsigned int y = 0; y < Constants::map_size.height; ++y) | 144 | for (unsigned int y = 0; y < Constants::map_size.height; ++y) |
| 145 | { | 145 | { |
| 146 | Transmission::field_t &cur = map[x][y]; | 146 | Transmission::field_t &cur = map[x][y]; |
| 147 | if (cur == Transmission::none) | 147 | if (cur == Transmission::none) { |
| 148 | cur = type; | 148 | cur = type; |
| 149 | else if (cur == Transmission::point) | 149 | } else if (cur == Transmission::point) { |
| 150 | cur = Transmission::none; | 150 | cur = Transmission::none; |
| 151 | } | ||
| 151 | } | 152 | } |
| 152 | } | 153 | } |
| 153 | } | 154 | } |
