[Freeciv-Dev] (PR#40180) Uninitialized datas in city structure

2008-04-02 Thread Pepeto _
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40180 There are many #if 0 ... #endif added at revisions 13911 to 13913 in create_city_virtual() in common/city.c. Now, there are lot of uninitialized data in the structure, including notably the trade routes. The effects are random. Maybe

Re: [Freeciv-Dev] (PR#40176) map_distance_vector() crash

2008-04-02 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40176 On 01/04/2008, Marko Lindqvist wrote: #1 0x0040be1c in sq_map_distance (tile0=0x14, tile1=0xbf9638) As interesting value of tile0 indicates... #2 0x0048f1f4 in map_claim_border (ptile=0xbfb1b8,

Re: [Freeciv-Dev] (PR#40170) Sending logmessages to clients should be optional

2008-04-02 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40170 On 28/03/2008, Madeline Book wrote: Actually, in the meantime, I thought of a better way: send the error messages only to connections with hack access. Sounds sensible. Patch wanted. - ML

Re: [Freeciv-Dev] (PR#40180) Uninitialized datas in city structure

2008-04-02 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40180 On 02/04/2008, Pepeto _ wrote: There are many #if 0 ... #endif added at revisions 13911 to 13913 in create_city_virtual() in common/city.c. Now, there are lot of uninitialized data in the structure, including notably the trade

Re: [Freeciv-Dev] (PR#40176) map_distance_vector() crash

2008-04-02 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40176 On 03/04/2008, Marko Lindqvist wrote: This should be fixable simply by adding ref_count for vision sites. Patch attached. - ML diff -Nurd -X.diff_ignore freeciv/common/vision.c freeciv/common/vision.c ---