sources » TemporalClass » JustLetGo
/*
* special variant used only when house-wide destruction is forced by Actions
* such as Destroy All (Objects/Buildings/etc) of House
*/
void TemporalClass::JustLetGo() {
if ( this->Victim ) {
this->Victim->IsBeingWarpedOut = 0;
this->Victim->TemporalTargettingMe = 0;
this->Victim = NULL;
}
TemporalClass *next = this->NextTemporal;
if ( next ) {
if ( next->PrevTemporal == this )
next->PrevTemporal = NULL;
this->NextTemporal->Detach();
this->NextTemporal = NULL;
}
TemporalClass *prev = this->PrevTemporal;
if ( prev ) {
if ( prev->NextTemporal == this )
prev->NextTemporal = NULL;
this->PrevTemporal->Detach();
this->PrevTemporal = NULL;
}
this->NextTemporal = NULL;
this->PrevTemporal = NULL;
this->SourceSW = NULL;
this->field_38 = NULL;
}