#2889: Some droids fall out of transport when loading game.
---------------------+-------------------------------------
  Reporter:  Cyp     |             Owner:
      Type:  bug     |            Status:  new
  Priority:  normal  |         Milestone:  unspecified
 Component:  other   |           Version:  git/master
  Keywords:          |  Operating System:  All/Non-Specific
Blocked By:          |          Blocking:
---------------------+-------------------------------------
 Since ini.childGroups() apparently returns a list in unspecified order,
 which in my current Qt version seems to be alphabetically sorted, some
 droids are loaded before the transport that they are in.

 In case the order changes in a future Qt version (to a hashmap instead of
 an alphabetically sorted map, for example), ini.childGroups() probably
 shouldn't be used at all, due to risk of desynch due to different Qt
 versions.

 The order that the droids are saved in should probably be saved in a
 QStringList, and the list should be used to decide the droid loading
 order.

 That probably applies to ini.childKeys(), too.

-- 
Ticket URL: <http://developer.wz2100.net/ticket/2889>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to