| 224 | } |
| 225 | |
| 226 | void NPCHazard::Discard() |
| 227 | { |
| 228 | if ((flg_hazard & 1) != 0) |
| 229 | { |
| 230 | if (cb_notify != NULL) |
| 231 | { |
| 232 | cb_notify->Notify((en_haznote)0, this); |
| 233 | } |
| 234 | |
| 235 | Cleanup(); |
| 236 | |
| 237 | g_cnt_activehaz &= ~((g_cnt_activehaz - 1) >> 31); |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | void NPCHazard::Kill() |
| 242 | { |
no test coverage detected