changeset 992:218a9ccd0c08

Generate maplocctrl data with correct coordinates (matching the LOC input coordinates origo 1,1).
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 16 Jun 2010 00:12:18 +0000
parents afb5ee8bd73a
children 89cabe51e7f2
files mkloc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mkloc.c	Wed Jun 16 00:10:11 2010 +0000
+++ b/mkloc.c	Wed Jun 16 00:12:18 2010 +0000
@@ -1242,7 +1242,7 @@
                     int col = col_light_white;
                     
                     fputc(0xff, outFile);
-                    fprintf(outFile, "loc%d_%d", tmp->ox, tmp->oy);
+                    fprintf(outFile, "loc%d_%d", tmp->ox + 1, tmp->oy + 1);
                     fputc(0xfc, outFile);
                     
                     switch (tmp->flags & LOCF_M_MASK) {