$NetBSD: patch-ar,v 1.2 2002/08/22 04:18:44 mycroft Exp $ --- linuxdoom-1.10/r_data.c.orig Mon Dec 22 20:57:47 1997 +++ linuxdoom-1.10/r_data.c Mon Aug 22 04:13:08 2022 @@ -84,10 +84,10 @@ typedef struct { char name[8]; - boolean masked; + short masked[2]; // OBSOLETE short width; short height; - void **columndirectory; // OBSOLETE + short columndirectory[2]; // OBSOLETE short patchcount; mappatch_t patches[1]; } maptexture_t; @@ -479,13 +479,13 @@ } numtextures = numtextures1 + numtextures2; - textures = Z_Malloc (numtextures*4, PU_STATIC, 0); - texturecolumnlump = Z_Malloc (numtextures*4, PU_STATIC, 0); - texturecolumnofs = Z_Malloc (numtextures*4, PU_STATIC, 0); - texturecomposite = Z_Malloc (numtextures*4, PU_STATIC, 0); - texturecompositesize = Z_Malloc (numtextures*4, PU_STATIC, 0); - texturewidthmask = Z_Malloc (numtextures*4, PU_STATIC, 0); - textureheight = Z_Malloc (numtextures*4, PU_STATIC, 0); + textures = Z_Malloc (numtextures*sizeof(*textures), PU_STATIC, 0); + texturecolumnlump = Z_Malloc (numtextures*sizeof(*texturecolumnlump), PU_STATIC, 0); + texturecolumnofs = Z_Malloc (numtextures*sizeof(*texturecolumnofs), PU_STATIC, 0); + texturecomposite = Z_Malloc (numtextures*sizeof(*texturecomposite), PU_STATIC, 0); + texturecompositesize = Z_Malloc (numtextures*sizeof(*texturecompositesize), PU_STATIC, 0); + texturewidthmask = Z_Malloc (numtextures*sizeof(*texturewidthmask), PU_STATIC, 0); + textureheight = Z_Malloc (numtextures*sizeof(*textureheight), PU_STATIC, 0); totalwidth = 0; @@ -567,7 +567,7 @@ R_GenerateLookup (i); // Create translation table for global animation. - texturetranslation = Z_Malloc ((numtextures+1)*4, PU_STATIC, 0); + texturetranslation = Z_Malloc ((numtextures+1)*sizeof(*texturetranslation), PU_STATIC, 0); for (i=0 ; i