From 832d649de01cf30444473d3766725e3356ae543f Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Sat, 15 Jul 2017 02:23:17 +0200 Subject: [PATCH 1/1] "temporary" fix for weapon order --- qcsrc/common/minigames/minigame/pong.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ) { -- 2.39.2