Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2000:
[Freeciv-Dev] Bugfix: Investigation city dialog refresh
Home

[Freeciv-Dev] Bugfix: Investigation city dialog refresh

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Bugfix: Investigation city dialog refresh
From: Marko Lindqvist <caz@xxxxxxxxx>
Date: Fri, 22 Dec 2000 13:19:02 +0200 (EET)

 Fixes a couple of bugs concerning city dialogs opened when diplomat
investigates enemy cities.

 1. Refresh dialog if city is investigated again.
 2. Do not try to refresh otherwise. Some problems still remain
    with city map.


 So far I have tested this only with gtk client. Also, so far I have been
unable to set up some special cases I want to test. I'll do rest of the
testing after christmas. Remaining problem (at least in gtk client) with
city map is that it updates every time it's exposed (minimize+maximize).
I'll leave this to someone who knows client code a bit better.
 One hackish solution would probably be to comment out client/packhand.c
lines 549-551:

    for(y=0; y<CITY_MAP_SIZE; y++)
      for(x=0; x<CITY_MAP_SIZE; x++)
        pcity->city_map[x][y] = C_TILE_EMPTY;

 That way, refresh would at least use correct values. This should lead to
no server/client sync problems, since dialog is not reopened after
reconnection.



 Caz

--

Attachment: refresh_fix.diff
Description: Text document


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