From a97a880bd025f2c15643f436d06206451dd7d639 Mon Sep 17 00:00:00 2001 From: Tyrann Date: Tue, 25 Sep 2007 06:32:10 +0930 Subject: [PATCH] [PATCH] light: fix alignment (again) on lit data I really should do more testing before I embarress myself by releasing stuff so obviously broken. Use the right pointer to align lit_filebase against. Signed-off-by: Tyrann --- light/light.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/light/light.c b/light/light.c index 211bccf5..32001924 100644 --- a/light/light.c +++ b/light/light.c @@ -170,7 +170,7 @@ LightWorld(void) if (colored && litfile) { /* litfile data stored in dlightdata, after the white light */ - lit_filebase = file_end + 12 - ((unsigned long)lit_filebase % 12); + lit_filebase = file_end + 12 - ((unsigned long)file_end % 12); lit_file_p = lit_filebase; lit_file_end = lit_filebase + 3 * (MAX_MAP_LIGHTING / 4); }