Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] [Patch] Reduce superfluous tile_info packets version 2
Home

[Freeciv-Dev] [Patch] Reduce superfluous tile_info packets version 2

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [Patch] Reduce superfluous tile_info packets version 2
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 25 Oct 2001 11:38:10 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

Ok here the cleaned up patch for official submission. This patch does:
 - removes the sent field of struct tile (AFAI see this was intended
 to solve a similar problem and it now obsolete)
 - adds a new server-only bit vector in struct tile: changed
 - if the server tries to sent a tile_info packet it is checked if
 this tile has changed since last sent for this player
 - if ther server has sent a tile_info packet the corresponding bit in
 the changed field is cleared
 - settler.c changes the special field calculates some stuff and
 reverts these changes. Such changes aren't user/client visible and
 have from now on to be done with the base_* methods.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "On the eigth day, God started debugging"

Attachment: change_field2.diff
Description: Text document


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