mbbsemu / MBBSEmu

The MajorBBS Emulation Project is an Open Source, Cross-Platform emulator for easily running The MajorBBS & Worldgroup Modules
https://www.mbbsemu.com
MIT License
128 stars 14 forks source link

[WCCMMUD] Major Mud - Character Editor ANSI not lined up/garbage #240

Closed tuday2 closed 3 years ago

tuday2 commented 3 years ago

Module Information

Describe the bug Character Editor ANSI not lined up/garbage

To Reproduce Steps to reproduce the behavior:

  1. Enter MajorMud module
  2. Enter character creation
  3. See Error

Expected behavior FSD looks normal

Screenshots

No Console Error

FSDerror

Software Information:

enusbaum commented 3 years ago

This was a regressed in MajorMUD caused by #234 and #235 where \r\n was being correctly insert into MCV string values. The FSD code was looking for \r to increment the Y value, so when it found the following \n is incremented X.

Because with #235 the sequence for newlines from an MCV will always be \r\n, we increment the Y position on \n.

This fixed the display issues with the MajorMUD full screen editor:

image