this.SendFlags |= MINIG_SF_UPDATE;
int i;
- for ( i = 1; i <= PONG_MAX_PLAYERS; i++ )
+ for ( i = 1; i <= PONG_MAX_PLAYERS; ++i )
if ( pong_paddle_hit(this, i) )
{
pong_paddle_bounce(this,i);
entity player = ...(0,entity);
int i;
- for ( i = 0; i < PONG_MAX_PLAYERS; i++ )
+ for ( i = 0; i < PONG_MAX_PLAYERS; ++i )
{
if ( minigame.pong_paddles[i] == NULL )
{
entity paddle;
entity ai;
int i;
- for ( i = 0; i < PONG_MAX_PLAYERS; i++ )
+ for ( i = 0; i < PONG_MAX_PLAYERS; ++i )
{
paddle = minigame.pong_paddles[i];
if ( paddle != NULL && paddle.realowner == player )
minigame.SendFlags |= MINIG_SF_UPDATE;
entity ball;
- for ( int j = 0; j < autocvar_sv_minigames_pong_ball_number; j++ )
+ for ( int j = 0; j < autocvar_sv_minigames_pong_ball_number; ++j )
{
ball = msle_spawn(minigame,new(pong_ball));
ball.pong_length = autocvar_sv_minigames_pong_ball_radius;
// potentially compiler bug
int j;
if ( minigame.minigame_flags & PONG_STATUS_WAIT )
- for ( j = 0; j < PONG_MAX_PLAYERS; j++ )
- //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 )
{
if ( minigame.minigame_flags & PONG_STATUS_WAIT )
{
entity paddle;
- for ( int j = PONG_MAX_PLAYERS-1; j >= 0; j-- )
+ for ( int j = PONG_MAX_PLAYERS-1; j >= 0; --j )
{
paddle = minigame.pong_paddles[j];
if ( paddle != NULL &&
}
}
+
+ minigame_show_allspecs(pos, mySize);
}
// Required function, draw the game status panel
mypos = pos;
mypos_y += (e.team-1) * (player_fontsize_y + ts_y);
- drawfill(mypos, ts, pong_team_to_color(e.team), 0.25, DRAWFLAG_ADDITIVE);
+ drawfill(mypos, ts, pong_team_to_color(e.team), 0.25 * panel_fg_alpha, DRAWFLAG_ADDITIVE);
minigame_drawcolorcodedstring_trunc(mySize_x,mypos,
(e.minigame_playerslot ? entcs_GetName(e.minigame_playerslot-1) : _("AI")),