mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 11:23:21 +00:00
Fix: [NoAI] don't notify caught exceptions
This commit is contained in:
parent
06adb9ace3
commit
0b2dd2c5cd
@ -478,7 +478,7 @@ void Squirrel::Initialize()
|
||||
|
||||
/* Handle compile-errors ourself, so we can display it nicely */
|
||||
sq_setcompilererrorhandler(this->vm, &Squirrel::CompileError);
|
||||
sq_notifyallexceptions(this->vm, SQTrue);
|
||||
sq_notifyallexceptions(this->vm, _debug_script_level > 5);
|
||||
/* Set a good print-function */
|
||||
sq_setprintfunc(this->vm, &Squirrel::PrintFunc);
|
||||
/* Handle runtime-errors ourself, so we can display it nicely */
|
||||
|
Loading…
Reference in New Issue
Block a user