From: Martin Taibr Date: Sat, 15 Jul 2017 00:23:17 +0000 (+0200) Subject: "temporary" fix for weapon order X-Git-Tag: xonotic-v0.8.5~2641^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=832d649de01cf30444473d3766725e3356ae543f;p=xonotic%2Fxonotic-data.pk3dir.git "temporary" fix for weapon order --- diff --git a/qcsrc/common/minigames/minigame/pong.qc b/qcsrc/common/minigames/minigame/pong.qc index dd072a05b..3cfee03b5 100644 --- a/qcsrc/common/minigames/minigame/pong.qc +++ b/qcsrc/common/minigames/minigame/pong.qc @@ -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 ) {