• xtrn/lord2/lord2.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sunday, April 05, 2026 12:21:29
    https://gitlab.synchro.net/main/sbbs/-/commit/16c2ea5be84bb1da7d9c0382
    Modified Files:
    xtrn/lord2/lord2.js
    Log Message:
    Change all while(1)s to while(!js.terminated)

    Game could sit in infinite loops if/when user disconnects during the game.

    Ideally, these loops would be checking bbs.online (for truthiness) as well, but I don't know how that works with jsdoor or what the equivalent dorkit thing would be, but this game needs to check if the user is still connected and (hopefully) terminate gracefully (e.g. save game state to prevent cheating). --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)