News:

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

world-mutation: route server_frame Join through tool_work_world_t

Started by janry, Yesterday at 10:25:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

janry

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.

prissi