aboutsummaryrefslogtreecommitdiff
path: root/sky/autoroute.cpp
diff options
context:
space:
mode:
authorMax Horn2003-04-27 15:49:08 +0000
committerMax Horn2003-04-27 15:49:08 +0000
commite85cbeb386aa40e1b32a09927c2f05a38d21b8b7 (patch)
tree5b11c9a820e8269b357b3addf4fdd468a15159a3 /sky/autoroute.cpp
parent8fdf6e92424f0a4a54b7c9944bdb5537774be3c5 (diff)
downloadscummvm-rg350-e85cbeb386aa40e1b32a09927c2f05a38d21b8b7.tar.gz
scummvm-rg350-e85cbeb386aa40e1b32a09927c2f05a38d21b8b7.tar.bz2
scummvm-rg350-e85cbeb386aa40e1b32a09927c2f05a38d21b8b7.zip
small buglet
svn-id: r7157
Diffstat (limited to 'sky/autoroute.cpp')
-rw-r--r--sky/autoroute.cpp2
1 files changed, 1 insertions, 1 deletions
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;