# HG changeset patch # User sheepluva # Date 1418072226 -3600 # Node ID 3b8290381fcb0eb94caa0869e3908825a321d668 # Parent 8d6063af793a3e65d6eaacc99ac6c50ccd8ac983 make sure view limits are updated at start of game diff -r 8d6063af793a -r 3b8290381fcb hedgewars/uStore.pas --- a/hedgewars/uStore.pas Mon Dec 08 15:02:43 2014 -0500 +++ b/hedgewars/uStore.pas Mon Dec 08 21:57:06 2014 +0100 @@ -96,6 +96,9 @@ procedure InitZoom(zoom: real); begin SetScale(zoom); + // make sure view limits are updated + // because SetScale() doesn't do it, if zoom=cScaleFactor + updateViewLimits(); end; function WriteInRect(Surface: PSDL_Surface; X, Y: LongInt; Color: LongWord; Font: THWFont; s: PChar): TSDL_Rect;