More predictable bombs trajectory with rc plane
authorunc0rr
Sun, 18 Jan 2009 15:01:54 +0000
changeset 1708 62e1d9af1dd9
parent 1707 43a571a99f8e
child 1709 97500cd389eb
More predictable bombs trajectory with rc plane
hedgewars/GSHandlers.inc
hedgewars/uConsts.pas
--- a/hedgewars/GSHandlers.inc	Sun Jan 18 14:49:21 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Sun Jan 18 15:01:54 2009 +0000
@@ -2011,7 +2011,7 @@
 if ((HHGear^.Message and gm_Attack) <> 0) and (Gear^.Health <> 0) then
 	begin
 	HHGear^.Message := HHGear^.Message and not gm_Attack;
-	AddGear(hwRound(Gear^.X), hwRound(Gear^.Y), gtAirBomb, 0, cBombsSpeed * Gear^.Tag, _0, 0);
+	AddGear(hwRound(Gear^.X), hwRound(Gear^.Y), gtAirBomb, 0, Gear^.dX * _0_5, Gear^.dY * _0_5, 0);
 	dec(Gear^.Health)
 	end;
 
--- a/hedgewars/uConsts.pas	Sun Jan 18 14:49:21 2009 +0000
+++ b/hedgewars/uConsts.pas	Sun Jan 18 15:01:54 2009 +0000
@@ -513,12 +513,12 @@
 			(FileName:         'cake2.ogg'; Path: ptSounds),// sndCake
 			(FileName:           'Ow1.ogg'; Path: ptVoices),// sndOw1
 			(FileName:           'Ow4.ogg'; Path: ptVoices),// sndOw4
-			(FileName:    'Firepunch1.ogg'; Path: ptSounds),// sndFirepunch1
-			(FileName:    'Firepunch2.ogg'; Path: ptSounds),// sndFirepunch2
-			(FileName:    'Firepunch3.ogg'; Path: ptSounds),// sndFirepunch3
-			(FileName:    'Firepunch4.ogg'; Path: ptSounds),// sndFirepunch4
-			(FileName:    'Firepunch5.ogg'; Path: ptSounds),// sndFirepunch5
-			(FileName:    'Firepunch6.ogg'; Path: ptSounds),// sndFirepunch6
+			(FileName:    'Firepunch1.ogg'; Path: ptVoices),// sndFirepunch1
+			(FileName:    'Firepunch2.ogg'; Path: ptVoices),// sndFirepunch2
+			(FileName:    'Firepunch3.ogg'; Path: ptVoices),// sndFirepunch3
+			(FileName:    'Firepunch4.ogg'; Path: ptVoices),// sndFirepunch4
+			(FileName:    'Firepunch5.ogg'; Path: ptVoices),// sndFirepunch5
+			(FileName:    'Firepunch6.ogg'; Path: ptVoices),// sndFirepunch6
 			(FileName:         'Melon.ogg'; Path: ptSounds),// sndMelon
 			(FileName:       'Hellish.ogg'; Path: ptSounds),// sndHellish
 			(FileName:        'Yoohoo.ogg'; Path: ptSounds) // sndYoohoo