share/hedgewars/Data/Maps/Knockball/map.lua
changeset 4517 0618b31023dc
parent 4506 37744d5c877e
child 7777 e0be9fbc21b4
--- a/share/hedgewars/Data/Maps/Knockball/map.lua	Sun Dec 12 23:52:53 2010 -0500
+++ b/share/hedgewars/Data/Maps/Knockball/map.lua	Mon Dec 13 15:02:04 2010 +0100
@@ -36,7 +36,8 @@
 	if GetGearType(gear) == gtShover then
 		ball = AddGear(GetX(gear), GetY(gear), gtBall, 0, 0, 0, 0)
 		if ball ~= nil then
-			CopyPV2(gear, ball)
+			local dx, dy = GetGearVelocity(gear)
+			SetGearVelocity(ball, dx * 2, dy * 2)
 			SetState(ball, 0x200) -- temporary - might change!
 			SetTag(ball, 8) -- baseball skin
 			FollowGear(ball)