Don't lose trade gain when ordering a trader.
Introduced in 8f04d2ee90
due to overeagerly stopping trade when leaving
the trading-state.
Noticed in:
https://wildfiregames.com/forum/topic/41264-alpha-25-pre-releaserelease-candidate-build-testing/page/9/?tab=comments#comment-437888.
Differential revision: https://code.wildfiregames.com/D4197
Comment by: @Stan
This was SVN commit r25835.
This commit is contained in:
parent
c7a6d49fc8
commit
5fba65e97d
@ -2884,9 +2884,6 @@ UnitAI.prototype.UnitFsmSpec = {
|
||||
},
|
||||
|
||||
"leave": function() {
|
||||
let cmpTrader = Engine.QueryInterface(this.entity, IID_Trader);
|
||||
if (cmpTrader)
|
||||
cmpTrader.StopTrading();
|
||||
},
|
||||
|
||||
"APPROACHINGMARKET": {
|
||||
|
Loading…
Reference in New Issue
Block a user