Fix bug #15541: fix OoS on [unit] tag generating different traits...
...because of usage of local RNG instead of MP RNG.
This commit is contained in:
parent
0558fa07fc
commit
a1c0c7cf94
3 changed files with 8 additions and 2 deletions
|
@ -10,6 +10,9 @@ Version 1.7.14+svn:
|
|||
failing assertion.
|
||||
* Language and i18n:
|
||||
* Updated translations: Chinese (Traditional), Japanese
|
||||
* Multiplayer:
|
||||
* Fix bug #15541: fix OOS on [unit] tag generating different
|
||||
traits because of usage of local RNG instead of MP RNG.
|
||||
|
||||
Version 1.7.14-1.8beta7:
|
||||
* AI:
|
||||
|
|
|
@ -5,6 +5,9 @@ changelog: http://svn.gna.org/viewcvs/*checkout*/wesnoth/trunk/changelog
|
|||
Version 1.7.14+svn:
|
||||
* Language and i18n:
|
||||
* Updated translations: Chinese (Traditional), Japanese.
|
||||
* Multiplayer:
|
||||
* Fix bug #15541: fix OOS on [unit] tag generating different
|
||||
traits because of usage of local RNG instead of MP RNG.
|
||||
|
||||
|
||||
Version 1.7.14-1.8beta7:
|
||||
|
|
|
@ -261,7 +261,7 @@ void unit_creator::add_unit(const config &cfg)
|
|||
if(add_to_recall_) {
|
||||
if (recall_list_element==team_.recall_list().end()) {
|
||||
//add to recall list
|
||||
unit new_unit(resources::units, temp_cfg, true);
|
||||
unit new_unit(resources::units, temp_cfg, true,resources::state_of_game);
|
||||
team_.recall_list().push_back(new_unit);
|
||||
DBG_NG << "inserting unit with id=["<<id<<"] on recall list for side " << new_unit.side() << "\n";
|
||||
} else {
|
||||
|
@ -275,7 +275,7 @@ void unit_creator::add_unit(const config &cfg)
|
|||
temp_cfg.remove_attribute("animate");
|
||||
if (recall_list_element==team_.recall_list().end()) {
|
||||
//new unit
|
||||
unit new_unit(resources::units, temp_cfg, true);
|
||||
unit new_unit(resources::units, temp_cfg, true, resources::state_of_game);
|
||||
resources::units->add(loc, new_unit);
|
||||
LOG_NG << "inserting unit for side " << new_unit.side() << "\n";
|
||||
post_create(loc,new_unit,animate);
|
||||
|
|
Loading…
Add table
Reference in a new issue