# HG changeset patch # User nemo # Date 1243816077 0 # Node ID 5a083e71a71d7144cc68ec404a46d21d9b401ab0 # Parent b246ad6484f58062c40c095fa00bfb582cc6c198 Properly decrement sniper rifle if timed out. Try to get camera position straight for once. diff -r b246ad6484f5 -r 5a083e71a71d hedgewars/GSHandlers.inc --- 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 diff -r b246ad6484f5 -r 5a083e71a71d hedgewars/uWorld.pas --- 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;