The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: janry on May 24, 2026, 10:25:57 PM

Title: world-mutation: route server_frame Join through tool_work_world_t
Post by: janry on May 24, 2026, 10:25:57 PM
The multiplayer-browser Join handler was the one remaining call site
calling welt->load() synchronously from a GUI event handler.  Fire
TOOL_WORK_WORLD with default_param="l0net:<server>" instead, matching
the pattern loadsave_frame already uses; the load runs from command_queue
once the click handler has unwound.  tool_work_world_t's 'l' branch now
distinguishes net: from local filenames to set CLIENT_WORLD vs LOADED_WORLD
post-load.
Title: Re: world-mutation: route server_frame Join through tool_work_world_t
Post by: prissi on May 24, 2026, 11:31:12 PM
Thanks, incorporated.