Update RoomFillSystem.cs

This commit is contained in:
Ed
2024-11-03 13:20:52 +03:00
parent 49d471894e
commit 11e9d4ed09

View File

@@ -32,7 +32,7 @@ public sealed class RoomFillSystem : EntitySystem
_dungeon.SpawnRoom(
xform.GridUid.Value,
mapGrid,
_maps.LocalToTile(xform.GridUid.Value, mapGrid, xform.Coordinates),
_maps.LocalToTile(xform.GridUid.Value, mapGrid, xform.Coordinates) - new Vector2i(room.Size.X/2,room.Size.Y/2), //CP14 Offset for halfroom
room,
random,
null,