From e0cbf98cde0642d993b67ee164ee163b4e321f77 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Tue, 16 Apr 2019 01:04:31 +0200 Subject: Move the item provided when spawning to the global layer immediately to avoid them being stuck in the clonk's layer --- TemplePushing.c4s/Script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'TemplePushing.c4s/Script.c') 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) -- cgit v1.2.3-54-g00ecf