]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a bug in loading colormap.lmp to determine number of fullbrights, forgot to pass...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 7 Nov 2005 09:52:57 +0000 (09:52 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 7 Nov 2005 09:52:57 +0000 (09:52 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5799 d7cf8633-e32d-0410-b094-e92efae38249

palette.c

index 7f56995587f36174c97218ad01b48579bb6b9f5c..f18d7e01873b598c0549e17d4687534ae3b3a16e 100644 (file)
--- a/palette.c
+++ b/palette.c
@@ -32,7 +32,7 @@ void Palette_SetupSpecialPalettes(void)
        unsigned char *colormap;
        fs_offset_t filesize;
 
-       colormap = FS_LoadFile("gfx/colormap.lmp", tempmempool, true, NULL);
+       colormap = FS_LoadFile("gfx/colormap.lmp", tempmempool, true, &filesize);
        if (colormap && filesize >= 16385)
                fullbright_start = 256 - colormap[16384];
        else