[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:
parent
8e774a9b30
commit
a97a880bd0
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue