From 57aa45271ff6a33b8a7ed99cc3a0e81e14fa3520 Mon Sep 17 00:00:00 2001 From: div0 Date: Fri, 3 Oct 2008 10:09:49 +0000 Subject: [PATCH] less warnings git-svn-id: svn://svn.icculus.org/nexuiz/trunk@4598 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/client/Main.qc | 7 ------- data/qcsrc/client/hook.qc | 2 +- data/qcsrc/client/main.qh | 4 ++-- data/qcsrc/client/mapvoting.qc | 4 +--- data/qcsrc/client/particles.qc | 1 - data/qcsrc/client/teamradar.qc | 2 +- 6 files changed, 5 insertions(+), 15 deletions(-) diff --git a/data/qcsrc/client/Main.qc b/data/qcsrc/client/Main.qc index 4f61eccc1..1a820cb86 100644 --- a/data/qcsrc/client/Main.qc +++ b/data/qcsrc/client/Main.qc @@ -474,7 +474,6 @@ void Ent_ReadTeamScore() void Ent_Nagger() { float nags; - string s; nags = ReadByte(); @@ -600,10 +599,6 @@ void CSQC_Ent_Remove() void Gamemode_Init() { - local string mapinfo, infoline; - local float len; - local float file; - get_mi_min_max(); mi_center = (mi_min + mi_max) * 0.5; mi_scale = mi_max - mi_min; @@ -643,8 +638,6 @@ void CSQC_CheckRevision(); void Fog_Force() { - string s; - // TODO somehow thwart prvm_globalset client ... if(forcefog != "") diff --git a/data/qcsrc/client/hook.qc b/data/qcsrc/client/hook.qc index 95554162b..2f34d4a7e 100644 --- a/data/qcsrc/client/hook.qc +++ b/data/qcsrc/client/hook.qc @@ -31,7 +31,7 @@ void Draw_CylindricLine(vector from, vector to, float thickness, string texture, void Draw_GrapplingHook() { - vector a, b, o; + vector a, b; string tex; vector rgb; diff --git a/data/qcsrc/client/main.qh b/data/qcsrc/client/main.qh index 2fdb05e5f..2a0f42959 100644 --- a/data/qcsrc/client/main.qh +++ b/data/qcsrc/client/main.qh @@ -91,8 +91,8 @@ string scores_label[MAX_SCORE]; float scores_flags[MAX_SCORE]; string teamscores_label[MAX_SCORE]; float teamscores_flags[MAX_SCORE]; -.float scores[MAX_SCORE]; -.float teamscores[MAX_TEAMSCORE]; +.float scores[MAX_SCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(scores); +.float teamscores[MAX_TEAMSCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(teamscores); #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER ) #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) ) diff --git a/data/qcsrc/client/mapvoting.qc b/data/qcsrc/client/mapvoting.qc index 66626130c..dfc2c66de 100644 --- a/data/qcsrc/client/mapvoting.qc +++ b/data/qcsrc/client/mapvoting.qc @@ -34,7 +34,7 @@ vector MapVote_RGB(float id) void MapVote_DrawMapItem(vector pos, float isize, float tsize, string map, string pic, float count, float id) { - vector img_size, a, b; + vector img_size; vector rgb; string label; float text_size; @@ -61,8 +61,6 @@ void MapVote_DrawMapItem(vector pos, float isize, float tsize, string map, strin if(pic == "") { - a_x = img_size_x; // for the lines - b_y = img_size_y; drawfill(pos, img_size, '.5 .5 .5', .7, DRAWFLAG_NORMAL); } else diff --git a/data/qcsrc/client/particles.qc b/data/qcsrc/client/particles.qc index 4b0780d31..471efd40b 100644 --- a/data/qcsrc/client/particles.qc +++ b/data/qcsrc/client/particles.qc @@ -1,6 +1,5 @@ vector PointInBrush_vec; entity PointInBrush_brush; -entity PointInBrush_allmask; .float dphitcontentsmask; float PointInBrush_Recurse() { diff --git a/data/qcsrc/client/teamradar.qc b/data/qcsrc/client/teamradar.qc index 6934a27b0..c95adc9ae 100644 --- a/data/qcsrc/client/teamradar.qc +++ b/data/qcsrc/client/teamradar.qc @@ -105,7 +105,7 @@ void draw_teamradar_icon(vector coord, float icon, float pingtime, vector rgb, f void() teamradar_view = { local float color; - local vector coord, rgb; + local vector rgb; local entity tm; float scale2d, normalsize, bigsize; float a; -- 2.39.2