projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0c9248
)
"temporary" fix for weapon order
454/head
author
Martin Taibr <taibr.martin@gmail.com>
Sat, 15 Jul 2017 00:23:17 +0000
(
02:23
+0200)
committer
Martin Taibr <taibr.martin@gmail.com>
Sat, 15 Jul 2017 00:23:17 +0000
(
02:23
+0200)
qcsrc/common/minigames/minigame/pong.qc
patch
|
blob
|
history
diff --git
a/qcsrc/common/minigames/minigame/pong.qc
b/qcsrc/common/minigames/minigame/pong.qc
index dd072a05be1f279b3b5f9b740a38702250890a7e..3cfee03b5f5cce0536759e307f80c2b8425d2a40 100644
(file)
--- 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 )
{