sources » TemporalClass » Detach
/*
* Breaks the link (bugfix and housewide destruction only)
*/
void TemporalClass::Detach(TemporalClass *this)
{
this->Victim->IsBeingWarpedOut = 0;
this->Victim->TemporalTargettingMe = 0;
this->Victim = 0;
if ( this->NextTemporal )
{
if ( this->NextTemporal->PrevTemporal == this )
this->NextTemporal->PrevTemporal = NULL;
this->NextTemporal->Detach();
}
if ( this->PrevTemporal )
{
if ( this->PrevTemporal->NextTemporal == this->NextTemporal )
this->PrevTemporal->NextTemporal = NULL;
this->PrevTemporal->Detach();
}
this->NextTemporal = 0;
this->PrevTemporal = 0;
this->SourceSW = 0;
this->field_38 = 0;
if ( this->OwnerUnit )
this->OwnerUnit->AssumeMissionComplete(0, 1);
}