https://gitlab.synchro.net/main/sbbs/-/commit/5e0fefb11ecb609f4822cbb2
Modified Files:
xtrn/lord2/lord2.js
Log Message:
lord2: actually close stime.dat and time.dat after rewriting them
load_time() truncated and rewrote both files, then evaluated "f.close"
without calling it, so the buffered write only reached disk if the File
object happened to be finalized cleanly. When it wasn't, both files were
left at 0 bytes and every later run, the nightly /MAINT event and
players entering the game alike, threw "Corrupt .../stime.dat" until the
files were repaired by hand.
The missing parentheses date from c1909b32bcb (2019-09-23).
Co-Authored-By: Claude Fable 5.2 <
noreply@anthropic.com>