From 9c16461c2980fe4ce5a9297ef434f6c4d7687bd8 Mon Sep 17 00:00:00 2001 From: belugas Date: Wed, 23 Jan 2008 17:40:37 +0000 Subject: [PATCH] (svn r11963) -Fix(r11961): Forgot to specify the meaning of the magical 6 substraction --- src/newgrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index c4e44df5a0..f3a485f983 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);