https://gitlab.synchro.net/main/sbbs/-/commit/014c6a968a1dbbf3df35767e
Modified Files:
xtrn/lord2/lord2.js
Log Message:
Have vbar return -1 on disconnect
This fixes issue #1130 *specifically* for Wendel's house.
Wendle's house sets the player busy, then has a choice with a
default value of one. If one is chosen, it does a goto back to
the choice. This is the infinite loop.
If there's a ref that does the opposite... for any unhandled value
does a goto, that will now be broken.
Fundamentally, the root cause is the way the timeout handler ignores disconnects when player.busy is true (after offmap). Someone needs
to dig in and write a REF file that tests what the result of a
choice when the user disconnects in offmap is in the DOS version.
If the program effectively does update in this case, that can be
put into handle_timeout() in the player.busy handler and eliminate
the possibility for offmap loops.
Loops for the 'busy' command would need to be investigated
separately... 'busy' is more interesting because it's much more
susceptible to carrier drop cheats (busy is what's used during
almost all battles).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net