formatting fixes; add string for attempt to undo tile assignment.

This commit is contained in:
ehouse 2004-05-14 09:05:45 +00:00
parent dc629a2706
commit dca1e27fa5

View file

@ -129,37 +129,44 @@ linux_getErrString( UtilErrID id )
switch( id ) { switch( id ) {
case ERR_TILES_NOT_IN_LINE: case ERR_TILES_NOT_IN_LINE:
message = "All tiles played must be in a line."; message = "All tiles played must be in a line.";
break; break;
case ERR_NO_EMPTIES_IN_TURN: case ERR_NO_EMPTIES_IN_TURN:
message = "Empty squares cannot separate tiles played."; message = "Empty squares cannot separate tiles played.";
break; break;
case ERR_TOO_FEW_TILES_LEFT_TO_TRADE:
message = "Too few tiles left to trade.";
break;
case ERR_TWO_TILES_FIRST_MOVE: case ERR_TWO_TILES_FIRST_MOVE:
message = "Must play two or more pieces on the first move."; message = "Must play two or more pieces on the first move.";
break; break;
case ERR_TILES_MUST_CONTACT: case ERR_TILES_MUST_CONTACT:
message = "New pieces must contact others already in place (or " message = "New pieces must contact others already in place (or "
"the middle square on the first move)."; "the middle square on the first move).";
break; break;
case ERR_NOT_YOUR_TURN: case ERR_NOT_YOUR_TURN:
message = "You can't do that; it's not your turn!"; message = "You can't do that; it's not your turn!";
break; break;
case ERR_NO_PEEK_ROBOT_TILES: case ERR_NO_PEEK_ROBOT_TILES:
message = "No peeking at the robot's tiles!"; message = "No peeking at the robot's tiles!";
break; break;
case ERR_NO_PEEK_REMOTE_TILES: case ERR_NO_PEEK_REMOTE_TILES:
message = "No peeking at remote players' tiles!"; message = "No peeking at remote players' tiles!";
break; break;
case ERR_REG_UNEXPECTED_USER: case ERR_REG_UNEXPECTED_USER:
message = "Refused attempt to register unexpected user[s]."; message = "Refused attempt to register unexpected user[s].";
break; break;
case ERR_SERVER_DICT_WINS: case ERR_SERVER_DICT_WINS:
message = "Conflict between Host and Guest dictionaries; Host wins."; message = "Conflict between Host and Guest dictionaries; Host wins.";
XP_WARNF( "GTK may have problems here." ); XP_WARNF( "GTK may have problems here." );
break; break;
case ERR_CANT_UNDO_TILEASSIGN:
message = "Tile assignment can't be undone.";
break;
default: default:
message = "<unrecognized error code reported>"; message = "<unrecognized error code reported>";
} }
return message; return message;