]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Some minor tweaks to the codebase to allow successful FTEQCC compilations
authorMario <mario.mario@y7mail.com>
Sat, 2 Jul 2022 12:21:57 +0000 (22:21 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 2 Jul 2022 12:21:57 +0000 (22:21 +1000)
qcsrc/client/hud/panel/strafehud.qc
qcsrc/common/command/rpn.qc
qcsrc/common/gamemodes/gamemode/domination/sv_domination.qc
qcsrc/common/mapinfo.qc
qcsrc/menu/xonotic/dialog_multiplayer_media_demo_timeconfirm.qc

index e4e339c44a53497c54e60485d00ce88b23468134..6ea836da1c87bfcdbb3230c83e303103e6eb7ea1 100644 (file)
@@ -539,7 +539,7 @@ void HUD_StrafeHUD()
                 bool indicator_direction = direction < 0;
                 // invert left/right when strafing backwards or when strafing towards the opposite side indicated by the direction variable
                 // if both conditions are true then it's inverted twice hence not inverted at all
-                if(!fwd != odd_angles)
+                if((!fwd) != odd_angles)
                 {
                     indicator_direction = !indicator_direction;
                 }
index 7c944aa0feacc98e6875b38f31f563a769ff80e1..99f96ff7606c90c68d6976e73fb014317ea07bd2 100644 (file)
@@ -189,7 +189,7 @@ void GenericCommand_rpn(int request, int argc, string command)
                                                rpn_setf(rpn_getf() || f);
                                        } else if(rpncmd == "xor" || rpncmd == "^^") {
                                                f = rpn_popf();
-                                               rpn_setf(!rpn_getf() != !f);
+                                               rpn_setf((!rpn_getf()) != !f);
                                        } else if(rpncmd == "bitnot") {
                                                rpn_setf(~rpn_popf());
                                        } else if(rpncmd == "not") {
index 7d3a02bfd60343729669009e2bc18f7f7ac96f98..be23f0428c4ba199291a6efd4759c55eb211a826 100644 (file)
@@ -294,7 +294,7 @@ void dom_controlpoint_setup(entity this)
        this.nextthink = time;
        settouch(this, dompointtouch);
        this.solid = SOLID_TRIGGER;
-       if(!this.flags & FL_ITEM)
+       if(!(this.flags & FL_ITEM))
                IL_PUSH(g_items, this);
        this.flags = FL_ITEM;
        setsize(this, '-32 -32 -32', '32 32 32');
index c0b67ff4d535e97e9752132fafd7134c28c9ae6d..12744a079dba705af97112b4c11b006c78fe4fce 100644 (file)
@@ -761,7 +761,7 @@ float MapInfo_Get_ByName_NoFallbacks(string pFilename, int pAllowGenerate, Gamet
        string fn;
        string s, t;
        float fh;
-       int f, i;
+       int i;
        float r, n, p;
        string acl;
 
@@ -954,7 +954,7 @@ float MapInfo_Get_ByName_NoFallbacks(string pFilename, int pAllowGenerate, Gamet
                        }
                        else
                        {
-                               t = car(s); s = cdr(s); f = stof(t);
+                               t = car(s); s = cdr(s); float tf = stof(t);
                                if(s != "")
                                {
                                        if(WARN_COND)
@@ -962,7 +962,7 @@ float MapInfo_Get_ByName_NoFallbacks(string pFilename, int pAllowGenerate, Gamet
                                }
                                else
                                {
-                                       if(a >= d || b >= e || c >= f)
+                                       if(a >= d || b >= e || c >= tf)
                                        {
                                                if(WARN_COND)
                                                        LOG_WARN("Map ", pFilename, " contains an incorrect size line, mins have to be < maxs");
@@ -974,7 +974,7 @@ float MapInfo_Get_ByName_NoFallbacks(string pFilename, int pAllowGenerate, Gamet
                                                MapInfo_Map_mins.z = c;
                                                MapInfo_Map_maxs.x = d;
                                                MapInfo_Map_maxs.y = e;
-                                               MapInfo_Map_maxs.z = f;
+                                               MapInfo_Map_maxs.z = tf;
                                        }
                                }
                        }
index 55760d14ab77cdddff1f9e532ded4e6ac79a9841..b9dccb8cb479a0ba82777dd5b97cab7850aba81a 100644 (file)
@@ -4,7 +4,7 @@
 #include "textlabel.qh"
 #include "button.qh"
 
-void Handle_TimeDemo_Click(entity unused, entity unused) { demolist.timeDemo(demolist); }
+void Handle_TimeDemo_Click(entity unused, entity me) { demolist.timeDemo(demolist); }
 void XonoticDemoTimeConfirmDialog_fill(entity me)
 {
        entity e;