diff options
author | Fabian Greffrath | 2015-03-30 18:13:10 +0200 |
---|---|---|
committer | Fabian Greffrath | 2015-03-30 18:13:10 +0200 |
commit | 535b4edd143ceeae870e9c13cdac65ce17e2be48 (patch) | |
tree | 11fa61069a3a5f73160913881af8f345d9312b7c /src/hexen/r_draw.c | |
parent | 833d8a838b44a950ebde587db1d888bf0a98e690 (diff) | |
parent | e0eb95922fbda64aca169d62029a5be071e1273f (diff) | |
download | chocolate-doom-535b4edd143ceeae870e9c13cdac65ce17e2be48.tar.gz chocolate-doom-535b4edd143ceeae870e9c13cdac65ce17e2be48.tar.bz2 chocolate-doom-535b4edd143ceeae870e9c13cdac65ce17e2be48.zip |
Merge pull request #523 from chocolate-doom/hexndemo
Add support for the Hexen 4 Level Demo Version
Diffstat (limited to 'src/hexen/r_draw.c')
-rw-r--r-- | src/hexen/r_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hexen/r_draw.c b/src/hexen/r_draw.c index e7481934..13a0421b 100644 --- a/src/hexen/r_draw.c +++ b/src/hexen/r_draw.c @@ -320,9 +320,9 @@ void R_InitTranslationTables(void) V_LoadTintTable(); // Allocate translation tables - translationtables = Z_Malloc(256 * 3 * (MAXPLAYERS - 1), PU_STATIC, 0); + translationtables = Z_Malloc(256 * 3 * (maxplayers - 1), PU_STATIC, 0); - for (i = 0; i < 3 * (MAXPLAYERS - 1); i++) + for (i = 0; i < 3 * (maxplayers - 1); i++) { lumpnum = W_GetNumForName("trantbl0") + i; transLump = W_CacheLumpNum(lumpnum, PU_STATIC); |