[Freeciv-Dev] [bug #14775] The server appears to have gotten into an infinite loop in the allocation of starting positions.

2009-11-16 Thread Marko Lindqvist

URL:
  

 Summary: The server appears to have gotten into an infinite
loop in the allocation of starting positions.
 Project: Freeciv
Submitted by: cazfi
Submitted on: Monday 11/16/2009 at 12:18
Category: general
Severity: 3 - Normal
Priority: 1 - Later
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: None
 Planned Release: None

___

Details:

Server should search for start positions in a deterministic manner instead of
current random placement. That way server would not abort because of starting
positions allocation failure nearly as often as currently.

Failures to allocate start positions can sometimes be reproduced with default
rules.

It happens constantly with Alien ruleset (
http://www.cazfi.net/freeciv/alien/ ) since there terrains native to starting
units are rare. Alien ruleset might be useful in testing rewrite of starting
position placement.




___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #1365] Add INT_TO_PTR() and PTR_TO_INT() macros

2009-11-16 Thread Marko Lindqvist

Follow-up Comment #1, patch #1365 (project freeciv):

For namespace cleanliness their name should have FC_ prefix. Macros to
convert between pointers and integers are quite common.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev