Fixed a bug by me regarding the filesize of the embedded font.
authortomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Jul 2005 15:10:09 +0000 (15:10 +0000)
committertomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Jul 2005 15:10:09 +0000 (15:10 +0000)
Added FONT_FILESIZE define to avoid this misstake in the future.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5529 d7cf8633-e32d-0410-b094-e92efae38249

gl_draw.c

index d1dbbf4..6e66546 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -30,6 +30,7 @@ static rtexture_t *char_texture;
 //=============================================================================
 /* Support Routines */
 
+#define FONT_FILESIZE 13468
 #define MAX_CACHED_PICS 256
 #define CACHEPICHASHSIZE 256
 static cachepic_t *cachepichash[CACHEPICHASHSIZE];
@@ -38,7 +39,7 @@ static int numcachepics;
 
 static rtexturepool_t *drawtexturepool;
 
-static qbyte concharimage[13468] =
+static qbyte concharimage[FONT_FILESIZE] =
 {
 #include "lhfont.h"
 };
@@ -51,7 +52,7 @@ static rtexture_t *draw_generateconchars(void)
        qbyte buffer[65536][4], *data = NULL;
        double random;
 
-       fs_filesize = 13396;
+       fs_filesize = FONT_FILESIZE;
        data = LoadTGA (concharimage, 256, 256);
        fs_filesize = -1;
 // Gold numbers