]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fteqcc sucks
authorRudolf Polzer <divverent@xonotic.org>
Mon, 31 Dec 2012 12:44:46 +0000 (13:44 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 31 Dec 2012 12:47:57 +0000 (13:47 +0100)
qcsrc/client/vehicles/vehicles.qc
qcsrc/csqcmodellib/cl_model.qc

index f18488c4ea5106344f55f3ad945dde5eae4dbd77..a6dbcef10305d55c3c7ca9f299067d0f3a8ba4ee 100644 (file)
@@ -211,13 +211,13 @@ void Net_VehicleSetup()
     }
 }
 #define HUD_GETSTATS \
-    noref float vh_health    = getstati(STAT_VEHICLESTAT_HEALTH);  \
-       noref float shield    = getstati(STAT_VEHICLESTAT_SHIELD);  \
-       noref float energy    = getstati(STAT_VEHICLESTAT_ENERGY);  \
-       noref float ammo1     = getstati(STAT_VEHICLESTAT_AMMO1);   \
-       noref float reload1   = getstati(STAT_VEHICLESTAT_RELOAD1); \
-       noref float ammo2     = getstati(STAT_VEHICLESTAT_AMMO2);   \
-       noref float reload2   = getstati(STAT_VEHICLESTAT_RELOAD2);
+    local noref float vh_health    = getstati(STAT_VEHICLESTAT_HEALTH);  \
+       local noref float shield    = getstati(STAT_VEHICLESTAT_SHIELD);  \
+       local noref float energy    = getstati(STAT_VEHICLESTAT_ENERGY);  \
+       local noref float ammo1     = getstati(STAT_VEHICLESTAT_AMMO1);   \
+       local noref float reload1   = getstati(STAT_VEHICLESTAT_RELOAD1); \
+       local noref float ammo2     = getstati(STAT_VEHICLESTAT_AMMO2);   \
+       local noref float reload2   = getstati(STAT_VEHICLESTAT_RELOAD2);
 
 void CSQC_BUMBLE_HUD()
 {
index a1a41412644f87cb247742a7a7451fa7f2e60680..8ccdf814e7362296b49209c647ed7ab0a0b6bf32 100644 (file)
@@ -145,9 +145,9 @@ void CSQCModel_InterpolateAnimation_Do()
 void CSQCModel_Draw()
 {
        // some nice flags for CSQCMODEL_IF and the hooks
-       noref float isplayer = (self.entnum >= 1 && self.entnum <= maxclients);
-       noref float islocalplayer = (self.entnum == player_localnum + 1);
-       noref float isnolocalplayer = (isplayer && (self.entnum != player_localnum + 1));
+       local noref float isplayer = (self.entnum >= 1 && self.entnum <= maxclients);
+       local noref float islocalplayer = (self.entnum == player_localnum + 1);
+       local noref float isnolocalplayer = (isplayer && (self.entnum != player_localnum + 1));
 
        // we don't do this for the local player as that one is already handled
        // by CSQCPlayer_SetCamera()
@@ -179,9 +179,9 @@ void CSQCModel_Read(float isnew)
        sf = ReadShort();
 
        // some nice flags for CSQCMODEL_IF and the hooks
-       noref float isplayer = (self.entnum >= 1 && self.entnum <= maxclients);
-       noref float islocalplayer = (self.entnum == player_localnum + 1);
-       noref float isnolocalplayer = (isplayer && (self.entnum != player_localnum + 1));
+       local noref float isplayer = (self.entnum >= 1 && self.entnum <= maxclients);
+       local noref float islocalplayer = (self.entnum == player_localnum + 1);
+       local noref float isnolocalplayer = (isplayer && (self.entnum != player_localnum + 1));
 
        self.classname = "csqcmodel";
        self.iflags |= IFLAG_ANGLES; // interpolate angles too