forked from Mirrors/openclonk
Added OnClonkEnteredRelaunch when the clonk enters the relaunch container (in accordance to OnClonkLeftRelaunch), request by the Knüppeln team.
I also use this commit to shamefully hide the bugfix of the bug I previously committed.install-platforms
parent
1144837e7e
commit
c2f1d47f63
|
@ -39,8 +39,9 @@ public func StartRelaunch(object clonk)
|
|||
// Save clonk for later use.
|
||||
crew = clonk;
|
||||
clonk->Enter(this);
|
||||
ScheduleCall(this, "OpenWeaponMenu", 36, 0, clonk);
|
||||
AddEffect("IntTimeLimit", this, 100, 36, this);
|
||||
ScheduleCall(this, "OpenWeaponMenu", 36, 0, clonk);
|
||||
GameCall("OnClonkEnteredRelaunch", clonk, clonk->GetOwner());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@ public func OnClonkDeath(object clonk, int killer)
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (GameCall("OnPlayerRelaunch", plr, true));
|
||||
if (GameCall("OnPlayerRelaunch", plr, true))
|
||||
return;
|
||||
return DoRelaunch(plr, clonk, nil);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue