Properly decrement sniper rifle if timed out. Try to get camera position straight for once.
authornemo
Mon, 01 Jun 2009 00:27:57 +0000
changeset 2139 5a083e71a71d
parent 2138 b246ad6484f5
child 2140 75e5c4fcae2a
Properly decrement sniper rifle if timed out. Try to get camera position straight for once.
hedgewars/GSHandlers.inc
hedgewars/uWorld.pas
--- a/hedgewars/GSHandlers.inc	Sun May 31 19:42:49 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Mon Jun 01 00:27:57 2009 +0000
@@ -495,6 +495,7 @@
     dec(TurnTimeLeft)
 else
     begin
+    PHedgehog(Gear^.Hedgehog)^.AttacksNum:= Gear^.Ammo^.NumPerTurn+1;
 	DeleteGear(Gear);
 	AfterAttack;
     TurnTimeLeft:= 0
--- a/hedgewars/uWorld.pas	Sun May 31 19:42:49 2009 +0000
+++ b/hedgewars/uWorld.pas	Mon Jun 01 00:27:57 2009 +0000
@@ -74,7 +74,7 @@
 prevPoint.Y:= cScreenHeight div 2;
 WorldDx:=  - (LAND_WIDTH div 2) + cScreenWidth div 2;
 //WorldDy:=  - (LAND_HEIGHT div 2) + cScreenHeight div 2;
-WorldDy:=  -playHeight + cScreenHeight div 2;
+WorldDy:=  - (LAND_HEIGHT - (playHeight div 2)) + (cScreenHeight div 2);
 AMxShift:= 210
 end;