* Check if a position is unveiled (the fog is removed). * * @param position For which position to check. * @return True if and only if the position is unveiled. */
| 339 | * @return True if and only if the position is unveiled. |
| 340 | */ |
| 341 | bool Map_IsPositionUnveiled(uint16 position) |
| 342 | { |
| 343 | Tile *t; |
| 344 | |
| 345 | if (g_debugScenario) return true; |
| 346 | |
| 347 | t = &g_map[position]; |
| 348 | |
| 349 | if (!t->isUnveiled) return false; |
| 350 | if (!Tile_IsUnveiled(t->overlayTileID)) return false; |
| 351 | |
| 352 | return true; |
| 353 | } |
| 354 | |
| 355 | /** |
| 356 | * Check if a position is in the viewport. |
no test coverage detected