Using "gui.open_info_win ()" causes problems in some cases, this has happened for a long time.
Tests: tutorial-test5.zip (http://files.simutrans.com/index.php/s/PoLGY5sUgYdpThg)
scenario.nut (line 261)
function resume_game()
{
point = persistent.point
gcount = persistent.count
gsignal = persistent.signal
sigcoord = persistent.sigcoord
// check for script version and compatibility, then use update
if ( persistent.version < version )
update() // do update old versions
load_chapter(persistent.chapter,0) // load correct chapter for player=0
chapter.step = persistent.step // set chapter step from persistent
chapter.step_ext = persistent.step_ext // set chapter step from persistent
select_option_halt = tile_x( 0, 0, select_option.z ).find_object(mo_label)
//persistent.select = select_option_halt.get_name()
//settings.set_industry_increase_every(0) // correct settings of savegame
gui.open_info_win() // show scenario window
}
Capture:
(http://files.simutrans.com/index.php/apps/files_sharing/ajax/publicpreview.php?x=1440&y=372&a=true&file=error-gui-open-win.png&t=6pgQVvxdH8lKHEq&scalingup=0)
Using this in "get_result_text(pl)" improves things. :P
//Delay is 2 at start or advance of chapter
if (delay>0){
delay--
return 0
}