All pastes #559318 Raw Edit

Untitled

public text v1 · immutable
·published 2007-06-11 18:32 UTC
rendered paste body
Index: src/client/cl_main.c
===================================================================
--- src/client/cl_main.c        (Revision 9030)
+++ src/client/cl_main.c        (Arbeitskopie)
@@ -1882,6 +1882,7 @@
 extern void CL_ReadSinglePlayerData (void)
 {
        char *type, *name, *text;
+       size_t gd_size = sizeof(gd);
 
        /* pre-stage parsing */
        FS_BuildFileList("ufos/*.ufo");
@@ -1903,7 +1904,7 @@
        while ((type = FS_NextScriptHeader("ufos/*.ufo", &name, &text)) != 0)
                CL_ParseScriptSecond(type, name, &text);
 
-       Com_Printf("Global data loaded - size %Zu bytes\n", sizeof(gd));
+       Com_Printf("Global data loaded - size %Zu bytes\n", gd_size);
        Com_Printf("...techs: %i\n", gd.numTechnologies);
        Com_Printf("...buildings: %i\n", gd.numBuildingTypes);
        Com_Printf("...ranks: %i\n", gd.numRanks);