From e85cbeb386aa40e1b32a09927c2f05a38d21b8b7 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 27 Apr 2003 15:49:08 +0000 Subject: small buglet svn-id: r7157 --- sky/autoroute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sky') diff --git a/sky/autoroute.cpp b/sky/autoroute.cpp index 68c14ed713..cc62df7d78 100644 --- a/sky/autoroute.cpp +++ b/sky/autoroute.cpp @@ -138,7 +138,7 @@ uint16 SkyAutoRoute::autoRoute(Compact *cpt, uint16 *routeCalc) { if (cpt->xcood < TOP_LEFT_X) { initX = cpt->xcood - TOP_LEFT_X; - initBlockY = 0; + initBlockX = 0; } else if (cpt->xcood - TOP_LEFT_X >= GAME_SCREEN_WIDTH) { // no_init_x1 initX = cpt->xcood - TOP_LEFT_X - (GAME_SCREEN_WIDTH - 1); // -1 to match amiga initBlockX = (GAME_SCREEN_WIDTH - 1) >> 3; -- cgit v1.2.3