| 196 | } |
| 197 | |
| 198 | void NPCHazard::Reconfigure(en_npchaz haztype) |
| 199 | { |
| 200 | HAZNotify* noter = this->cb_notify; |
| 201 | zNPCCommon* npc_old = this->npc_owner; |
| 202 | xVec3 old_pos; |
| 203 | xVec3Copy(&old_pos, &this->pos_hazard); |
| 204 | this->Cleanup(); |
| 205 | this->WipeIt(); |
| 206 | this->flg_hazard = 0x21; |
| 207 | this->ConfigHelper(haztype); |
| 208 | this->PosSet(&old_pos); |
| 209 | this->NotifyCBSet(noter); |
| 210 | this->SetNPCOwner(npc_old); |
| 211 | if (this->cb_notify != NULL) |
| 212 | { |
| 213 | this->cb_notify->Notify(HAZ_NOTE_RECONFIG, this); |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | void NPCHazard::FreeModel() |
| 218 | { |
nothing calls this directly
no test coverage detected