scpcb icon indicating copy to clipboard operation
scpcb copied to clipboard

Fixed some PreventRoomOverlap issues

Open Sooslick opened this issue 1 year ago • 6 comments

Fixed some issues and false-negatives in PreventRoomOverlap function:

  1. Added swapping min/max in CalculateRoomExtents function before adjusting size (causing room extents stretch instead of shrink);
  2. Moved CalculateRoomExtents from CreateRoom function to CreateMap to calculate initial extents correctly;
  3. Fixed misleading "replaced room successfully" message for the case where rooms hadn't been replaced at all.

Sooslick avatar Sep 24 '23 17:09 Sooslick