Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10657) player_dlg must have a column for username
Home

[Freeciv-Dev] (PR#10657) player_dlg must have a column for username

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: kaufman@xxxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#10657) player_dlg must have a column for username
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Thu, 28 Oct 2004 20:22:11 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10657 >

> [jdorje - Mon Oct 25 06:39:44 2004]:
> 
> +  if (has_capability("username_info", aconnection.capability)) {
> +    sz_strlcpy(pplayer->username, pinfo->username);
> +  } else {
> +    conn_list_iterate(game.est_connections, pconn) {
> +      if (pconn->player == pplayer && !pconn->observer) {
> +        sz_strlcpy(pplayer->username, pconn->username);
> +      }
> +    } conn_list_iterate_end;
> +  }
> 
> But if it's as easy as finding the conn matching the player why do we
> need a new network field at all?

Good question. I even wonder why we have a plr->username field in CVS in
the first place. Is it because it must be saved or something like that?



[Prev in Thread] Current Thread [Next in Thread]