# HG changeset patch # User nemo # Date 1332045056 14400 # Node ID b45c38282566ba60f5a9ed3b3dfc4e5e298ff45c # Parent 4822b7d41aaa50e2d42dd90d90bdb049ddb9c8ae revert this until someone makes it not screw up camera focus diff -r 4822b7d41aaa -r b45c38282566 hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Sun Mar 18 00:59:17 2012 +0100 +++ b/hedgewars/uWorld.pas Sun Mar 18 00:30:56 2012 -0400 @@ -500,10 +500,14 @@ AmmoRect.x:= (cScreenWidth shr 1) - AmmoRect.w - AMSlotSize; AmmoRect.y:= cScreenHeight - (AmmoRect.h + AMSlotSize); {$ENDIF} + AMShiftTargetX:= (cScreenWidth shr 1) - AmmoRect.x; + AMShiftTargetY:= cScreenHeight - AmmoRect.y; +(* if (AMAnimType and AMTypeMaskX) <> 0 then AMShiftTargetX:= (cScreenWidth shr 1) - AmmoRect.x else AMShiftTargetX:= 0; if (AMAnimType and AMTypeMaskY) <> 0 then AMShiftTargetY:= cScreenHeight - AmmoRect.y else AMShiftTargetY:= 0; +*) AMShiftX:= AMShiftTargetX; AMShiftY:= AMShiftTargetY; end;