rendered paste bodyIndex: 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)