[Freeciv-Dev] [bug #15744] Various bugs with pillaging of bases

2010-04-23 Thread Jacob Nevins

Update of bug #15744 (project freeciv):

 Assigned to:None = jtn

___

Follow-up Comment #2:

Another bug (similar to 4th point): in the pillage_select case, if an
irrigation system is pillaged, adjacent units whose in-progress irrigation
was relying on it won't have their orders cancelled (see savegame).

I'm working on a combined patch for all this and bug #15742 (it got too
tangled to keep them separate).

(file #9056)
___

Additional Item Attachment:

File name: pillage3.sav.bz2   Size:14 KB


___

Reply to this item at:

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

___
  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 #15744] Various bugs with pillaging of bases

2010-03-28 Thread Jacob Nevins

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

 Summary: Various bugs with pillaging of bases
 Project: Freeciv
Submitted by: jtn
Submitted on: Monday 03/29/10 at 03:10
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: None
 Planned Release: 

___

Details:

Found by code inspection, not all verified to cause visible problems yet.
Including:
* Pillage select popup includes bases that are already being pillaged.
* You can specify a base to pillage, but it gets lost when you save the game,
because the unit's activity_base value is only saved if it's doing
ACTIVITY_BASE, not ACTIVITY_PILLAGE. Instead you get BASE_NONE (see below).
* In the pillage_select=0 case, can_unit_do_activity_targeted_at() checks the
value of get_preferred_pillage() without decomposing it into target/base
first. (I'd expect this to preventing pillaging fortresses in civ1, but for
some reason it doesn't.)
* In update_unit_activity(), there seems to be handling for old savegames
where base pillaging is indicated by S_LAST+BASE_NONE. This shouldn't happen
with current servers, except that the second bug means it will.
call_incident() is only called for the targeted case, not the compatibility
case.
* Again in update_unit_activity() (this time the targeted case), if multiple
units are simultaneously pillaging different bases on a tile, when one of
them finishes all the rest will be cancelled (bases are treated as the
same).
Perhaps more to come...




___

Reply to this item at:

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

___
  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 #15744] Various bugs with pillaging of bases

2010-03-28 Thread Jacob Nevins

Follow-up Comment #1, bug #15744 (project freeciv):

4th point: s/base pillaging/untargeted pillaging/

___

Reply to this item at:

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

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


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