]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
"temporary" fix for weapon order 454/head
authorMartin Taibr <taibr.martin@gmail.com>
Sat, 15 Jul 2017 00:23:17 +0000 (02:23 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Sat, 15 Jul 2017 00:23:17 +0000 (02:23 +0200)
qcsrc/common/minigames/minigame/pong.qc

index dd072a05be1f279b3b5f9b740a38702250890a7e..3cfee03b5f5cce0536759e307f80c2b8425d2a40 100644 (file)
@@ -427,8 +427,12 @@ int pong_server_event(entity minigame, string event, ...)
                                        return true;
                                case "pong_aimore":
                                {
+                                       // keep declaration here, moving it into for() reverses weapon order
+                                       // potentially compiler bug
+                                       int j;
                                        if ( minigame.minigame_flags & PONG_STATUS_WAIT )
-                                               for ( int j = 0; j < PONG_MAX_PLAYERS; j++ )
+                                               for ( j = 0; j < PONG_MAX_PLAYERS; j++ )
+                                               //for ( int j = 0; j < PONG_MAX_PLAYERS; j++ )
                                                {
                                                        if ( minigame.pong_paddles[j] == NULL )
                                                        {