From: Jakob MG Date: Wed, 22 Feb 2012 08:54:37 +0000 (+0100) Subject: Yay more unref. be gone. X-Git-Tag: xonotic-v0.6.0~53^2~23 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=162661467c51f9cad0e0af2e74d2926568e80339;p=xonotic%2Fxonotic-data.pk3dir.git Yay more unref. be gone. --- diff --git a/qcsrc/client/autocvars.qh b/qcsrc/client/autocvars.qh index 56963fcd1..480f7beff 100644 --- a/qcsrc/client/autocvars.qh +++ b/qcsrc/client/autocvars.qh @@ -153,8 +153,8 @@ float autocvar_g_waypointsprite_normdistance; float autocvar_g_waypointsprite_scale; float autocvar_g_waypointsprite_spam; float autocvar_g_waypointsprite_timealphaexponent; -float autocvar_g_waypointsprites_turrets; -float autocvar_g_waypointsprites_turrets_maxdist; +//float autocvar_g_waypointsprites_turrets; +//float autocvar_g_waypointsprites_turrets_maxdist; float autocvar_hud_colorflash_alpha; float autocvar_hud_configure_checkcollisions; diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index c40e9fc49..e70a83c39 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -556,12 +556,13 @@ string HUD_PANELNAME_CENTERPRINT = "centerprint"; #define SERVERFLAG_TEAMPLAY 2 #define SERVERFLAG_PLAYERSTATS 4 -var vector autocvar_sv_player_maxs = '16 16 45'; -var vector autocvar_sv_player_mins = '-16 -16 -24'; -var vector autocvar_sv_player_viewoffset = '0 0 20'; -var vector autocvar_sv_player_crouch_maxs = '16 16 25'; -var vector autocvar_sv_player_crouch_mins = '-16 -16 -24'; -var vector autocvar_sv_player_crouch_viewoffset = '0 0 20'; +// FIXME/EXPLAINME: why? +noref var vector autocvar_sv_player_maxs = '16 16 45'; +noref var vector autocvar_sv_player_mins = '-16 -16 -24'; +noref var vector autocvar_sv_player_viewoffset = '0 0 20'; +noref var vector autocvar_sv_player_crouch_maxs = '16 16 25'; +noref var vector autocvar_sv_player_crouch_mins = '-16 -16 -24'; +noref var vector autocvar_sv_player_crouch_viewoffset = '0 0 20'; noref var vector autocvar_sv_player_headsize = '24 24 12'; #define PL_VIEW_OFS autocvar_sv_player_viewoffset diff --git a/qcsrc/common/net_notice.qc b/qcsrc/common/net_notice.qc index 35699480e..869a44bc8 100644 --- a/qcsrc/common/net_notice.qc +++ b/qcsrc/common/net_notice.qc @@ -51,8 +51,8 @@ void SUB_Remove() void cl_notice_read() { entity _notice; - float _done; - float _modal; + //float _done; + //float _modal; _notice = spawn(); _notice.classname = "sv_notice"; _notice.netname = strzone(ReadString()); @@ -64,7 +64,7 @@ float cl_notice_run() { entity _notes; string _notice; - float c, m = FALSE; + float m = FALSE; _notes = findchain(classname, "sv_notice"); if(!_notes) diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 5685f4db2..76b2f28d1 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -168,8 +168,10 @@ void check_unacceptable_compiler_bugs(); float compressShotOrigin(vector v); vector decompressShotOrigin(float f); +#ifdef SVQC string rankings_reply, ladder_reply, lsmaps_reply, lsnewmaps_reply, maplist_reply; // cached replies string records_reply[10]; +#endif float RandomSelection_totalweight; float RandomSelection_best_priority; diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c b/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c index b187c007a..d33a1eab1 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c @@ -30,7 +30,7 @@ void XonoticPlayerSettingsTab_draw(entity me) } void XonoticPlayerSettingsTab_fill(entity me) { - entity e, pms, sl, label, e0, box; + entity e, pms, label, box; float i, r, m, n; me.TR(me); diff --git a/qcsrc/menu/xonotic/dialog_settings_misc.c b/qcsrc/menu/xonotic/dialog_settings_misc.c index e743ccf2e..b9aab55ab 100644 --- a/qcsrc/menu/xonotic/dialog_settings_misc.c +++ b/qcsrc/menu/xonotic/dialog_settings_misc.c @@ -20,7 +20,7 @@ entity makeXonoticMiscSettingsTab() void XonoticMiscSettingsTab_fill(entity me) { entity e; - entity sk; + //entity sk; me.TR(me); me.TD(me, 1, 3, e = makeXonoticTextLabel(0, _("Network:"))); diff --git a/qcsrc/menu/xonotic/weaponslist.c b/qcsrc/menu/xonotic/weaponslist.c index 952c3c956..1f06b9d88 100644 --- a/qcsrc/menu/xonotic/weaponslist.c +++ b/qcsrc/menu/xonotic/weaponslist.c @@ -65,7 +65,7 @@ void XonoticWeaponsList_resizeNotify(entity me, vector relOrigin, vector relSize } float XonoticWeaponsList_mouseDrag(entity me, vector pos) { - float f, i, scrollbar; + float f, i; i = me.selectedItem; f = SUPER(XonoticWeaponsList).mouseDrag(me, pos);