[Freeciv-Dev] Re: New alliances v2 (PR#8394)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] Re: New alliances v2 (PR#8394) |
From: |
"Per I. Mathisen" <per@xxxxxxxxxxx> |
Date: |
Sun, 18 Apr 2004 03:27:42 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8394 >
On Fri, 16 Apr 2004, Mateusz Stefek wrote:
> Very good stuff!
Thanks for reviewing.
> + } else if (pplayer->team == TEAM_NONE) {
> + char teamname[MAX_LEN_NAME];
> +
> + snprintf(teamname, sizeof(teamname), _("Pax %s"),
> + get_nation_name(pplayer->nation));
> + team_consistency_check;
> + handle_team_add_player(pplayer, pplayer->player_no, teamname);
> + }
>
> What would happen if there was already a team with that name?
The AI would fail to create an alliance. So a human player could create an
alliance with the name Pax+<ai nation> to stop that AI player from
creating an alliance... Fixed.
> +if (!is_sane_name(name) || strlen(name) > 20) {
> + notify_player_ex(pplayer, -1, -1, E_TREATY_BROKEN,
> + _("Game: That is a stupid name for an
> alliance."));
> + return;
> +}
> We should also search for a '*'in the name.
Good idea.
- Per
- [Freeciv-Dev] Re: New alliances (PR#8394), (continued)
- [Freeciv-Dev] Re: New alliances (PR#8394), Per I. Mathisen, 2004/04/13
- [Freeciv-Dev] Re: New alliances (PR#8394), Per I. Mathisen, 2004/04/13
- [Freeciv-Dev] Re: New alliances (PR#8394), LoboGris, 2004/04/13
- [Freeciv-Dev] Re: New alliances (PR#8394), Per I. Mathisen, 2004/04/14
- [Freeciv-Dev] Re: New alliances (PR#8394), LoboGris, 2004/04/14
- [Freeciv-Dev] Re: New alliances (PR#8394), rwetmore@xxxxxxxxxxxx, 2004/04/14
- [Freeciv-Dev] Re: New alliances (PR#8394), Per I. Mathisen, 2004/04/14
- [Freeciv-Dev] Re: New alliances (PR#8394), imbaczek@xxxxxxxxxxxxxx, 2004/04/14
- [Freeciv-Dev] New alliances v2 (PR#8394), Per I. Mathisen, 2004/04/15
- [Freeciv-Dev] Re: New alliances v2 (PR#8394), Mateusz Stefek, 2004/04/16
- [Freeciv-Dev] Re: New alliances v2 (PR#8394),
Per I. Mathisen <=
- [Freeciv-Dev] New alliances v3 (PR#8394), Per I. Mathisen, 2004/04/18
- [Freeciv-Dev] Re: New alliances v3 (PR#8394), Per I. Mathisen, 2004/04/18
- [Freeciv-Dev] Re: New alliances (PR#8394), Jason Short, 2004/04/20
- [Freeciv-Dev] Re: New alliances (PR#8394), Mike Kaufman, 2004/04/20
- [Freeciv-Dev] Re: New alliances (PR#8394), Per I. Mathisen, 2004/04/20
- [Freeciv-Dev] Re: New alliances (PR#8394), Jason Short, 2004/04/20
- [Freeciv-Dev] Re: New alliances (PR#8394), Per I. Mathisen, 2004/04/20
- [Freeciv-Dev] Re: New alliances (PR#8394), LoboGris, 2004/04/20
- [Freeciv-Dev] Re: New alliances v3 (PR#8394), Mateusz Stefek, 2004/04/26
- [Freeciv-Dev] Re: New alliances v3 (PR#8394), Per I. Mathisen, 2004/04/26
|
|