DM: S20: Fix waittime at scenario start
Don't animate unit advancements during a prestart event.
It woudl be better it u:advance() would automaticialyl not waste time animating advancements that can't be seen (during prestart events) but for this scenario this is already an improvement
(cherry picked from commit e549b03412
)
This commit is contained in:
parent
e8271cd138
commit
78c2f2e954
1 changed files with 1 additions and 1 deletions
|
@ -550,7 +550,7 @@
|
||||||
end
|
end
|
||||||
-- level the unit and give it a random amount of experience up to half of max
|
-- level the unit and give it a random amount of experience up to half of max
|
||||||
units[i].experience = units[i].max_experience
|
units[i].experience = units[i].max_experience
|
||||||
units[i]:advance( )
|
units[i]:advance(false)
|
||||||
units[i].experience = mathx.random ( 0, mathx.round( units[i].max_experience / 2 ) )
|
units[i].experience = mathx.random ( 0, mathx.round( units[i].max_experience / 2 ) )
|
||||||
end
|
end
|
||||||
>>
|
>>
|
||||||
|
|
Loading…
Add table
Reference in a new issue