| 145 | } |
| 146 | |
| 147 | void DoVisionFlags(Point position, MapExplorationType doAutomap, bool visible) |
| 148 | { |
| 149 | if (doAutomap != MAP_EXP_NONE) { |
| 150 | if (dFlags[position.x][position.y] != DungeonFlag::None) |
| 151 | SetAutomapView(position, doAutomap); |
| 152 | dFlags[position.x][position.y] |= DungeonFlag::Explored; |
| 153 | } |
| 154 | if (visible) |
| 155 | dFlags[position.x][position.y] |= DungeonFlag::Lit; |
| 156 | dFlags[position.x][position.y] |= DungeonFlag::Visible; |
| 157 | } |
| 158 | |
| 159 | } // namespace |
| 160 |
no test coverage detected