hunt/playit.c
/*
 * team_of_color:
 *	Get team character corresponding to a color
 *	XXX: this should be kept in sync with the team_colors array in
 *	huntd/extern.c
 *	(and yes, I know this is all rather crufty - but I can't see a better
 *	way)
 */
Get team character corresponding to a color
XXX: this should be kept in sync with the team_colors array in
huntd/extern.c
(and yes, I know this is all rather crufty - but I can't see a better
way)
Get team character corresponding to a color XXX : this should be kept in sync with the team_colors array in huntd / extern . c ( and yes I know this is all rather crufty - but I can ' t see a better way )
static char
team_of_color(int clr)
{
	switch (clr) {
		case COL_RED:		return '1';
		case COL_GREEN:		return '2';
		case COL_MAGENTA:	return '3';
		case COL_CYAN:		return '4';
		case COL_RED_B:		return '5';
		case COL_GREEN_B:	return '6';
		case COL_YELLOW_B:	return '7';
		case COL_BLUE_B:	return '8';
		case COL_MAGENTA_B:	return '9';
		default:		return ' ';
	}
}
static char team_of_color ( int clr ) { switch ( clr ) { case COL_RED : return ' ' ; case COL_GREEN : return ' ' ; case COL_MAGENTA : return ' ' ; case COL_CYAN : return ' ' ; case COL_RED_B : return ' ' ; case COL_GREEN_B : return ' ' ; case COL_YELLOW_B : return ' ' ; case COL_BLUE_B : return ' ' ; case COL_MAGENTA_B : return ' ' ; default : return ' ' ; } }
team_of_color:
      Get team character corresponding to a color
      XXX: this should be kept in sync with the team_colors array in
      huntd/extern.c
      (and yes, I know this is all rather crufty - but I can't see a better
      way)
team_of_color : Get team character corresponding to a color XXX : this should be kept in sync with the team_colors array in huntd / extern . c ( and yes I know this is all rather crufty - but I can ' t see a better way )