in games the teams will have diffrent colors

origin
stpohle 21 years ago
parent fd3cfda417
commit 6c660aae1a

@ -1,4 +1,4 @@
/* $Id: configuration.c,v 1.66 2004/10/06 17:43:28 stpohle Exp $
/* $Id: configuration.c,v 1.67 2004/10/28 18:15:17 stpohle Exp $
* configuration */
#include <SDL.h>
@ -62,6 +62,7 @@ config_init (int argc, char **argv)
srand (((int) time (NULL))); // initialize randomgenerator
for (i = 0; i < MAX_TEAMS; i++) {
teams[i].col = i;
sprintf (teams[i].name, "Team %d", i+1);
for (j = 0; j < MAX_PLAYERS; j++)
teams[i].players[j] = NULL;

@ -1,4 +1,4 @@
/* $Id: game.c,v 1.99 2004/10/18 20:20:22 stpohle Exp $
/* $Id: game.c,v 1.100 2004/10/28 18:15:18 stpohle Exp $
game.c - procedures for the game. */
#include <string.h>
@ -71,6 +71,9 @@ game_draw_info ()
col = 3;
}
else { // player is alife
if (bman.gametype == GT_team)
col = teams[players[i].team_nr].col;
else
col = 0;
}

Loading…
Cancel
Save