diff options
Diffstat (limited to 'src/r_data.c')
-rw-r--r-- | src/r_data.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/r_data.c b/src/r_data.c index aa890888..ff8e2b4b 100644 --- a/src/r_data.c +++ b/src/r_data.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: r_data.c 8 2005-07-23 16:44:57Z fraggle $ +// $Id: r_data.c 19 2005-07-23 19:17:11Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -22,6 +22,9 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.3 2005/07/23 19:17:11 fraggle +// Use ANSI-standard limit constants. Remove LINUX define. +// // Revision 1.2 2005/07/23 16:44:56 fraggle // Update copyright to GNU GPL // @@ -38,7 +41,7 @@ static const char -rcsid[] = "$Id: r_data.c 8 2005-07-23 16:44:57Z fraggle $"; +rcsid[] = "$Id: r_data.c 19 2005-07-23 19:17:11Z fraggle $"; #include "i_system.h" #include "z_zone.h" @@ -54,10 +57,6 @@ rcsid[] = "$Id: r_data.c 8 2005-07-23 16:44:57Z fraggle $"; #include "doomstat.h" #include "r_sky.h" -#ifdef LINUX -#include <alloca.h> -#endif - #include "r_data.h" @@ -332,7 +331,7 @@ void R_GenerateLookup (int texnum) // that are covered by more than one patch. // Fill in the lump / offset, so columns // with only a single patch are all done. - patchcount = (byte *)alloca (texture->width); + patchcount = (byte *) malloc(texture->width); memset (patchcount, 0, texture->width); patch = texture->patches; @@ -383,7 +382,9 @@ void R_GenerateLookup (int texnum) texturecompositesize[texnum] += texture->height; } - } + } + + free(patchcount); } |