Code: Select all
./openttd -a "Zuu AI" -g
ZuuAI::Start()
ManageLoan: Want to pay back
Company: LT Transportation Transport
balance: 100000
loan: 100000
max_balance: 40000
pay_back: 60000
new_loan: 40000
Successfully paid back loan
ZuuAI::Stop()
ManageLoan: Want to pay back
Company: Unnamed
balance: 130000
loan: 130000
max_balance: 40000
pay_back: 90000
new_loan: 40000
openttd: /home/leif/Spel/OpenTTD/noai/noai/src/ai/ai_threads.cpp:130: void AIThreadState::Suspend(int): Assertion `this->state == RUNNING' failed.
zsh: abort ./openttd -a "Zuu AI" -g
EDIT: Seeing that you plan to change the Start/Stop mechanism it might not be worth to look deeper into this.