News:

Want to praise Simutrans?
Your feedback is important for us ;D.

[Script Tools] Tools do not execute exit(player_t)

Started by Yona-TYT, November 21, 2022, 07:10:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT

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)

Dwachs

I cannot reproduce this. Maybe there is a special condition in your game (scneario?) preventign this?
Parsley, sage, rosemary, and maggikraut.

Yona-TYT

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.