summaryrefslogtreecommitdiff
path: root/src/hexen/r_data.c
diff options
context:
space:
mode:
authorSimon Howard2009-01-27 21:45:52 +0000
committerSimon Howard2009-01-27 21:45:52 +0000
commit2932aef2247dd4f6c654416e4272cfbf872401a1 (patch)
tree45028b0bc53cd8c7e41b8128c8ce9be3a86b2742 /src/hexen/r_data.c
parent1f19598df064341e8e92b70e466ca8b9f373b4a6 (diff)
downloadchocolate-doom-2932aef2247dd4f6c654416e4272cfbf872401a1.tar.gz
chocolate-doom-2932aef2247dd4f6c654416e4272cfbf872401a1.tar.bz2
chocolate-doom-2932aef2247dd4f6c654416e4272cfbf872401a1.zip
Don't align "colormaps" on a 256 byte boundary (fix for 64 bit)
Subversion-branch: /branches/raven-branch Subversion-revision: 1434
Diffstat (limited to 'src/hexen/r_data.c')
-rw-r--r--src/hexen/r_data.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hexen/r_data.c b/src/hexen/r_data.c
index 3c2c652f..bd020073 100644
--- a/src/hexen/r_data.c
+++ b/src/hexen/r_data.c
@@ -499,9 +499,8 @@ void R_InitColormaps(void)
// 256 byte align tables
//
lump = W_GetNumForName("COLORMAP");
- length = W_LumpLength(lump) + 255;
+ length = W_LumpLength(lump);
colormaps = Z_Malloc(length, PU_STATIC, 0);
- colormaps = (byte *) (((int) colormaps + 255) & ~0xff);
W_ReadLump(lump, colormaps);
}