The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Yona-TYT on November 21, 2022, 07:10:22 PM

Title: [Script Tools] Tools do not execute exit(player_t)
Post by: Yona-TYT on November 21, 2022, 07:10:22 PM
I'm not sure if this is a bug, but it seems that switching between tools is not executing "exit(player_t)" correctly for the script tools.

When changing from a script tool to a normal tool this is not working:
bool tool_exec_script_t::exit(player_t* player)
Title: Re: [Script Tools] Tools do not execute exit(player_t)
Post by: Dwachs on December 03, 2022, 01:20:02 PM
I cannot reproduce this. Maybe there is a special condition in your game (scneario?) preventign this?
Title: Re: [Script Tools] Tools do not execute exit(player_t)
Post by: Yona-TYT on December 05, 2022, 05:09:03 AM
Quote from: Dwachs on December 03, 2022, 01:20:02 PMI cannot reproduce this. Maybe there is a special condition in your game (scneario?) preventign this?

This is in regards to the script tool window patch. I was trying to get the window to close when switching script tools, but using "exit" didn't do the trick.

I'll have to find another approach.