[Freeciv-Dev] [bug #17661] AI diplomacy does not react to spacerace leading position immediately

2011-02-10 Thread Marko Lindqvist

Update of bug #17661 (project freeciv):

  Status:  Ready For Test = Fixed  
 Open/Closed:Open = Closed 


___

Reply to this item at:

  http://gna.org/bugs/?17661

___
  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] [bug #17661] AI diplomacy does not react to spacerace leading position immediately

2011-02-06 Thread Marko Lindqvist

URL:
  http://gna.org/bugs/?17661

 Summary: AI diplomacy does not react to spacerace leading
position immediately
 Project: Freeciv
Submitted by: cazfi
Submitted on: Mon 07 Feb 2011 02:01:39 AM EET
Category: ai
Severity: 3 - Normal
Priority: 5 - Normal
  Status: In Progress
 Assigned to: cazfi
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: None
 Planned Release: 2.3.0

___

Details:

Found out when debugging patch #2374:

ai_diplomacy_begin_new_phase() is called before advisor data
diplomacy.spacerace_leader is set. Thus ai_diplomacy_begin_new_phase() uses
old value. I think this is value from previous turn, or NULL if game was just
loaded from savegame. But I'm not 100% certain it's not initialized between
turns leading ai to never notice it is spacerace leader. This would explain
why it currently never seems to try spacerace victory...

patch #2374 will fix this for trunk, S2_3 needs some other kind of fix.




___

Reply to this item at:

  http://gna.org/bugs/?17661

___
  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] [bug #17661] AI diplomacy does not react to spacerace leading position immediately

2011-02-06 Thread Marko Lindqvist

Update of bug #17661 (project freeciv):

  Status: In Progress = Ready For Test 

___

Follow-up Comment #1:

Untested fix

(file #12301)
___

Additional Item Attachment:

File name: SpaceRaceLeader_17661.diff Size:0 KB


___

Reply to this item at:

  http://gna.org/bugs/?17661

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


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