summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-01-23 17:40:37 +0000
committerbelugas <belugas@openttd.org>2008-01-23 17:40:37 +0000
commitba1f3b4834a83efd63563d8d5fb7af7e06aeae5f (patch)
treee5f82be6b9f0194303a6ed3124225dc3c45b6c4d
parent881b74e8828625b61df29d4a0a133535d31f96ba (diff)
downloadopenttd-ba1f3b4834a83efd63563d8d5fb7af7e06aeae5f.tar.xz
(svn r11963) -Fix(r11961): Forgot to specify the meaning of the magical 6 substraction
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index c4e44df5a..f3a485f98 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -4052,7 +4052,7 @@ static uint32 GetPatchVariable(uint8 param)
*/
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);