From: Rudolf Polzer Date: Mon, 31 Dec 2012 12:44:46 +0000 (+0100) Subject: fteqcc sucks X-Git-Tag: xonotic-v0.7.0~149 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8e6b27d700cb463b43686d3ed7e18a74348fb955;p=xonotic%2Fxonotic-data.pk3dir.git fteqcc sucks --- diff --git a/qcsrc/client/vehicles/vehicles.qc b/qcsrc/client/vehicles/vehicles.qc index f18488c4e..a6dbcef10 100644 --- a/qcsrc/client/vehicles/vehicles.qc +++ b/qcsrc/client/vehicles/vehicles.qc @@ -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() { diff --git a/qcsrc/csqcmodellib/cl_model.qc b/qcsrc/csqcmodellib/cl_model.qc index a1a414126..8ccdf814e 100644 --- a/qcsrc/csqcmodellib/cl_model.qc +++ b/qcsrc/csqcmodellib/cl_model.qc @@ -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