* Is tile vulnerable for an earthquake? * @param tem Tile data * @return Function returns \c true if tile is vulnerable, and \c false if not */
| 318 | * @return Function returns \c true if tile is vulnerable, and \c false if not |
| 319 | */ |
| 320 | bool Micropolis::vulnerable(int tem) |
| 321 | { |
| 322 | int tem2 = tem & LOMASK; |
| 323 | |
| 324 | if (tem2 < RESBASE || tem2 > LASTZONE || (tem & ZONEBIT)) { |
| 325 | return false; |
| 326 | } |
| 327 | |
| 328 | return true; |
| 329 | } |
| 330 | |
| 331 | |
| 332 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected