From c483d5868366a794c5a80e9e6bdc17a78a4d4c71 Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Sat, 10 Jul 2010 00:58:02 +0000 Subject: [PATCH] If we have tiles just off the bottom they can stick up into our screen. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@945 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/miso/client/MisoScenePanel.as | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/miso/client/MisoScenePanel.as b/src/as/com/threerings/miso/client/MisoScenePanel.as index 91a7105b..1c82f4ea 100644 --- a/src/as/com/threerings/miso/client/MisoScenePanel.as +++ b/src/as/com/threerings/miso/client/MisoScenePanel.as @@ -163,7 +163,7 @@ public class MisoScenePanel extends Sprite var minX :int = xMove; var maxX :int = size.x + xMove; var minY :int = yMove; - var maxY :int = size.y + yMove; + var maxY :int = BOTTOM_BUFFER + size.y + yMove; var topLeft :Point = _isoView.localToIso(new Point(minX, minY)); var topRight :Point = _isoView.localToIso(new Point(maxX, minY)); @@ -250,7 +250,7 @@ public class MisoScenePanel extends Sprite // Then we let the scene finally move if it's trying to... if (_pendingMoveBy != null) { _isoView.centerOnPt(new Pt(_pendingMoveBy.x + _isoView.currentX, - _pendingMoveBy.y+ _isoView.currentY), false); + _pendingMoveBy.y + _isoView.currentY), false); _pendingMoveBy = null; } @@ -310,6 +310,8 @@ public class MisoScenePanel extends Sprite protected const DEF_WIDTH :int = 985; protected const DEF_HEIGHT :int = 560; + + protected const BOTTOM_BUFFER :int = 250; } }