(svn r11963) -Fix(r11961): Forgot to specify the meaning of the magical 6 substraction
authorbelugas
Wed, 23 Jan 2008 17:40:37 +0000
changeset 8393 a0ab817a8b73
parent 8392 e80cb3cd512d
child 8394 8d765e1d2641
(svn r11963) -Fix(r11961): Forgot to specify the meaning of the magical 6 substraction
src/newgrf.cpp
--- a/src/newgrf.cpp	Wed Jan 23 17:30:28 2008 +0000
+++ b/src/newgrf.cpp	Wed Jan 23 17:40:37 2008 +0000
@@ -4052,7 +4052,7 @@
 		 */
 		case 0x13: {
 			byte map_bits = 0;
-			byte log_X = MapLogX() - 6;
+			byte log_X = MapLogX() - 6; // substraction is required to make the minimal size (64) zero based
 			byte log_Y = MapLogY() - 6;
 			byte max_edge = max(log_X, log_Y);