[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 <tyrann@disenchant.net>
This commit is contained in:
Tyrann 2007-09-25 06:32:10 +09:30
parent 8e774a9b30
commit a97a880bd0
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}