All pastes #511260 Raw Edit

Unnamed

public text v1 · immutable
#511260 ·published 2007-05-26 10:44 UTC
rendered paste body
Index: src/client/cl_aircraft.c
===================================================================
--- src/client/cl_aircraft.c    (Revision 8768)
+++ src/client/cl_aircraft.c    (Arbeitskopie)
@@ -1473,14 +1473,6 @@
                CL_ClientHunkStoreString(name, &air_samp->id);
                air_samp->status = AIR_HOME;
 
-               /* get it's body */
-               token = COM_Parse(text);
-
-               if (!*text || *token != '{') {
-                       Com_Printf("AIR_ParseAircraft: aircraft def \"%s\" without body ignored\n", name);
-                       return;
-               }
-
                /* TODO: document why do we have two values for this */
                numAircraft_samples++;
                gd.numAircraft++;
@@ -1498,7 +1490,15 @@
                        Sys_Error("AIR_ParseAircraft: aircraft not found - can not link (%s) - parsed aircraft amount: %i\n", name, numAircraft_samples);
                }
        }
+       /* get it's body */
+       token = COM_Parse(text);
 
+       if (!*text || *token != '{') {
+               Com_Printf("AIR_ParseAircraft: aircraft def \"%s\" without body ignored\n", name);
+               return;
+       }
+
+
        do {
                token = COM_EParse(text, errhead, name);
                if (!*text)