scpcb
scpcb copied to clipboard
Fixed some PreventRoomOverlap issues
Fixed some issues and false-negatives in PreventRoomOverlap function:
- Added swapping min/max in CalculateRoomExtents function before adjusting size (causing room extents stretch instead of shrink);
- Moved CalculateRoomExtents from CreateRoom function to CreateMap to calculate initial extents correctly;
- Fixed misleading "replaced room successfully" message for the case where rooms hadn't been replaced at all.