Summary: Replace act_tgt with extra_type pointer.
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Sat 06 Jul 2013 12:12:44 AM EEST
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.6.0



Replace all uses of act_tgt structure with extra_type pointer.

Savefile format is not changed - target extras are still saved as individual
classes (special/base/road).
Network protocol has changed significantly. Some packages have been removed
(where there was separate package depending of target class, and now is just
extra), and others are smaller (where value of each class was sent in same
package though only one of the classes made sense any one time).

Otherwise I've gone with simple transformation to keep this patch manageable -
this leaves much space for future cleanups. Especially client side pillage
handling unnecessarily converts back and forth between combined extra_type and
individual classes.

So far only gtk3-client briefly tested. Others are known to compile.


File Attachments:

Date: Sat 06 Jul 2013 12:12:44 AM EEST  Name: ExtraActTgt.patch.bz2  Size:
15kB   By: cazfi



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to