sync unit creation in [side]
especialy the traits, we use a set_random_determinstic for that.
This commit is contained in:
parent
8a7e4d6993
commit
86675bee65
1 changed files with 6 additions and 3 deletions
|
@ -225,10 +225,13 @@ void play_controller::init(CVideo& video){
|
|||
gamedata_.build_team_stage_one(tb_ptr);
|
||||
team_builders.push_back(tb_ptr);
|
||||
}
|
||||
|
||||
BOOST_FOREACH(team_builder_ptr tb_ptr, team_builders)
|
||||
{
|
||||
gamedata_.build_team_stage_two(tb_ptr);
|
||||
//sync traits of start units
|
||||
random_new::set_random_determinstic deterministic(gamedata_.rng());
|
||||
BOOST_FOREACH(team_builder_ptr tb_ptr, team_builders)
|
||||
{
|
||||
gamedata_.build_team_stage_two(tb_ptr);
|
||||
}
|
||||
}
|
||||
|
||||
// mouse_handler expects at least one team for linger mode to work.
|
||||
|
|
Loading…
Add table
Reference in a new issue