]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix speed awards on the ladder, branch should now be ready for merging to master!
authorFruitieX <rasse@rasse-laptop.(none)>
Wed, 27 Oct 2010 09:37:52 +0000 (12:37 +0300)
committerFruitieX <rasse@rasse-laptop.(none)>
Wed, 27 Oct 2010 09:37:52 +0000 (12:37 +0300)
qcsrc/server/miscfunctions.qc

index 40c513812ab72cd0715794dbdc0fa04a59cc9038..6f8b8e4fb5f85600ac78c1e99ab017d48aea6f75 100644 (file)
@@ -2295,8 +2295,10 @@ string getladder()
                for (i = 0; i <= LADDER_CNT; ++i) { // i = 0 because it is the speed award
                        if(i == 0) // speed award
                        {
-                               if(stof(db_get(ServerProgsDB, strcat(MapInfo_Map_bspname, rr, "speed/speed"))) == 0);
+                               print("^1Hit! ", db_get(ServerProgsDB, strcat(MapInfo_Map_bspname, rr, "speed/speed")), "\n");
+                               if(stof(db_get(ServerProgsDB, strcat(MapInfo_Map_bspname, rr, "speed/speed"))) == 0)
                                        continue;
+                               print("^1Also hit after\n");
 
                                myuid = db_get(ServerProgsDB, strcat(MapInfo_Map_bspname, rr, "speed/crypto_idfp"));
                        }