]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
never return TRUE directly, always break, should fix "unreachable code" warning
authorRudolf Polzer <divverent@alientrap.org>
Thu, 14 Jun 2012 09:00:41 +0000 (11:00 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 14 Jun 2012 09:00:41 +0000 (11:00 +0200)
qcsrc/server/command/vote.qc

index 3cd106f817b8b76a19a2680d531a9ad66cbf6d4b..e4564753008b889303ab4992bb4afbfd2f71edbd 100644 (file)
@@ -540,13 +540,13 @@ float VoteCommand_checkargs(float startpos, float argc)
                // have been seen already
 
                if(startpos >= argc) // all args checked? GOOD
-                       return TRUE;
+                       break;
 
                if(p < 0) // no more args? FAIL
                {
                        // exception: exactly minargs left, this one included
                        if(argc - startpos == minargs)
-                               return TRUE;
+                               break;
 
                        // otherwise fail
                        return FALSE;