Make a positive return of the OnPlayerRelaunch game call suppress regular relaunch behavior.

I suspect this was intended all along (compare to line #223) but not implemented by mistake.
install-platforms
Clonkonaut 2017-07-07 00:27:08 +02:00
parent d34f0a689b
commit 1144837e7e
1 changed files with 2 additions and 1 deletions

View File

@ -241,7 +241,8 @@ public func OnClonkDeath(object clonk, int killer)
return;
}
}
GameCall("OnPlayerRelaunch", plr, true);
if (GameCall("OnPlayerRelaunch", plr, true));
return;
return DoRelaunch(plr, clonk, nil);
}