]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
kill more dead code
authorRudolf Polzer <divverent@xonotic.org>
Tue, 12 Feb 2013 16:03:29 +0000 (17:03 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 12 Feb 2013 16:03:29 +0000 (17:03 +0100)
qcsrc/client/miscfunctions.qc
qcsrc/menu/xonotic/dialog_multiplayer_playersetup_model.c
qcsrc/server/defs.qh
qcsrc/server/miscfunctions.qc

index ad0ca01c585b5c520ea599980ff3061f90a51141..7edabdfc524bbcc5fecc5636d936e5bac72f0343 100644 (file)
@@ -574,7 +574,6 @@ void DrawCircleClippedPic(vector centre, float radius, string pic, float f, vect
 const vector GETPLAYERORIGIN_ERROR = '1123581321 2357111317 3141592653'; // way out of bounds for anything on the map
 vector getplayerorigin(float pl)
 {
-       string s;
        entity e;
 
        e = CSQCModel_server2csqc(pl + 1);
index 25b0fcb191d6ab2e41922c8ef9a63715a085077e..c55d4d488ba4ebcf37f2fd096fcf27a81e5c79ba 100644 (file)
@@ -37,12 +37,6 @@ void XonoticModelDialog_fill(entity me)
                        e.configureXonoticTextSliderValues(e);
                        setDependent(e, "cl_gentle", 0, 0);
        me.TR(me);
-       #ifdef ALLOW_FORCEMODELS
-               me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Force models:")));
-               me.TD(me, 1, 2/3, e = makeXonoticRadioButton(6, string_null, string_null, ZCTX(_("MDL^None"))));
-               me.TD(me, 1, 2/3, e = makeXonoticRadioButton(6, "cl_forceplayermodelsfromxonotic", string_null, ZCTX(_("MDL^Custom"))));
-               me.TD(me, 1, 2/3, e = makeXonoticRadioButton(6, "cl_forceplayermodels", string_null, ZCTX(_("MDL^All"))));
-       #endif
        me.TR(me);
                me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_forceplayermodels", _("Force player models to mine")));
        me.TR(me);
index ca01caf9ca3098c855a0d716c01fdba697488ad4..bfea6b2bcb39f681c8d6110d81db1d90b0399f70 100644 (file)
@@ -277,11 +277,6 @@ float default_weapon_alpha;
 .string cvar_g_xonoticversion;
 .string cvar_cl_weaponpriority;
 .string cvar_cl_weaponpriorities[10];
-#ifdef ALLOW_FORCEMODELS
-.float cvar_cl_forceplayermodels;
-.float cvar_cl_forceplayermodelsfromxonotic;
-float sv_clforceplayermodels;
-#endif
 .float cvar_cl_gunalign;
 .float cvar_cl_noantilag;
 
index e8972ca8e4c75c317bbfceea7495d2e80451abaa..e3689cc3d3337d7ced4df19b02ab9c6053b50697 100644 (file)
@@ -574,10 +574,6 @@ void GetCvars(float f)
        self.cvar_cl_accuracy_data_share = boolean(self.cvar_cl_accuracy_data_share);
        self.cvar_cl_accuracy_data_receive = boolean(self.cvar_cl_accuracy_data_receive);
 
-#ifdef ALLOW_FORCEMODELS
-       GetCvars_handleFloat(s, f, cvar_cl_forceplayermodels, "cl_forceplayermodels");
-       GetCvars_handleFloat(s, f, cvar_cl_forceplayermodelsfromxonotic, "cl_forceplayermodelsfromxonotic");
-#endif
        GetCvars_handleFloatOnce(s, f, cvar_cl_gunalign, "cl_gunalign");
        GetCvars_handleFloat(s, f, cvar_cl_allow_uid2name, "cl_allow_uid2name");
        GetCvars_handleFloat(s, f, cvar_cl_allow_uidtracking, "cl_allow_uidtracking");
@@ -1164,10 +1160,6 @@ void readlevelcvars(void)
     g_touchexplode_edgedamage = cvar("g_touchexplode_edgedamage");
     g_touchexplode_force = cvar("g_touchexplode_force");
 
-#ifdef ALLOW_FORCEMODELS
-       sv_clforceplayermodels = cvar("sv_clforceplayermodels");
-#endif
-
        sv_clones = cvar("sv_clones");
        sv_gentle = cvar("sv_gentle");
        sv_foginterval = cvar("sv_foginterval");