share/hedgewars/Data/Maps/Knockball/map.lua
changeset 7777 e0be9fbc21b4
parent 4517 0618b31023dc
child 8349 a1dbe148f10f
--- a/share/hedgewars/Data/Maps/Knockball/map.lua	Sun Oct 21 17:00:35 2012 +0400
+++ b/share/hedgewars/Data/Maps/Knockball/map.lua	Sun Oct 21 10:20:48 2012 -0400
@@ -34,7 +34,7 @@
 
 function onGearAdd(gear)
 	if GetGearType(gear) == gtShover then
-		ball = AddGear(GetX(gear), GetY(gear), gtBall, 0, 0, 0, 0)
+		ball = AddGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog), gtBall, 0, 0, 0, 0)
 		if ball ~= nil then
 			local dx, dy = GetGearVelocity(gear)
 			SetGearVelocity(ball, dx * 2, dy * 2)