From 284072765b33b29b5e162da569dd99080933cc3e Mon Sep 17 00:00:00 2001 From: bob Date: Wed, 27 Jun 2007 00:59:22 +0000 Subject: [PATCH] git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1082 993157c7-ee19-0410-b2c4-bb4e9862e678 --- ShpViewer/MapViewControl.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ShpViewer/MapViewControl.cs b/ShpViewer/MapViewControl.cs index 9687acd3d3..c19b696823 100644 --- a/ShpViewer/MapViewControl.cs +++ b/ShpViewer/MapViewControl.cs @@ -29,13 +29,13 @@ namespace ShpViewer for( int x = 50 ; x >= 0 ; x-- ) { int tX = x + Map.XOffset + XScroll; - if( tX < 1 || tX > 127 ) + if( tX < Map.XOffset || tX >= Map.XOffset + Map.Width ) continue; for( int y = 50 ; y >= 0 ; y-- ) { int tY = y + Map.YOffset + YScroll; - if( tY < 1 || tY > 127 ) + if( tY < Map.YOffset || tY >= Map.YOffset + Map.Height ) continue; Terrain t;