Update of bug #23564 (project freeciv):

                  Status:                    None => Ready For Test         

    _______________________________________________________

Follow-up Comment #5:

> player_set_nation() -> player_nation_defaults() ->
> ai_traits_init()

Except that only player_set_nation_full(), not player_set_nation() calls
player_nation_defaults().

Anyway, fix attached.

- Call ai_traits_init() when nation gets set up (in savegame loading code)
- Do not call ai_traits_init() for players who had nation set already in the
loop assigning fallback nations
- Do not try to load traits for players who do not have even nation set
- In savegame3.c unconditionally expect also trait val to exist as there's no
savegame3.c save versions without that information
- Use sg_failure_ret() in loading traits


(file #24504, file #24505)
    _______________________________________________________

Additional Item Attachment:

File name: TraitLoadFix.patch             Size:4 KB
File name: TraitLoadFix-S2_6.patch        Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?23564>

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


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to