Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2000:
[Freeciv-Dev] patch: connection.player (PR#448)
Home

[Freeciv-Dev] patch: connection.player (PR#448)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] patch: connection.player (PR#448)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Thu, 13 Jul 2000 03:04:32 -0700 (PDT)

This patch changes the (char *player) field in the connection 
struct (previously unused except to set to NULL) to a 
(struct player *player), and adds code to keep it up-to-date 
as connections are made and lost/removed in the server 
(it is not used in the client).  

This allows some code simplications also included in the patch,
where we no longer need to scan the players array to find the
player given a connection.  (There is also some related cleanup
using pplayer instead of game.players[player_no].)

This patch goes on top of connection_module1.diff:
  http://www.freeciv.org/cgi-bin/bugs?findid=447    
(or easy to back-port).

-- David

Attachment: conn_player1.diff.gz
Description: GNU Zip compressed data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] patch: connection.player (PR#448), David Pfitzner <=