summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2019-04-16 01:04:31 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2019-04-16 01:04:31 +0200
commite0cbf98cde0642d993b67ee164ee163b4e321f77 (patch)
tree3512f04a5adc38c8b40dd20b480916bb50eb6b84
parent55b826420d7bfff520f28ff6d8788e336d0e247b (diff)
downloadtempelschubsen-e0cbf98cde0642d993b67ee164ee163b4e321f77.tar.gz
tempelschubsen-e0cbf98cde0642d993b67ee164ee163b4e321f77.zip
Move the item provided when spawning to the global layer immediately to avoid them being stuck in the clonk's layer
-rw-r--r--TemplePushing.c4s/Script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TemplePushing.c4s/Script.c b/TemplePushing.c4s/Script.c
index 6b47dcf..c13e797 100644
--- a/TemplePushing.c4s/Script.c
+++ b/TemplePushing.c4s/Script.c
@@ -588,7 +588,7 @@ func LaunchClonk(int player, object clonk, bool relaunch)
SetPlrView(player, clonk);
ResetHealth(clonk);
- CreateContents(spawnPointSpawner->GetRandomDefinition(), clonk);
+ CreateContents(spawnPointSpawner->GetRandomDefinition(), clonk)->SetObjectLayer(0);
}
func ResetHealth(object clonk)