diff --git a/code/modules/mapping/space_management/space_reservation.dm b/code/modules/mapping/space_management/space_reservation.dm index 38e7e4ecad..83147d5df7 100644 --- a/code/modules/mapping/space_management/space_reservation.dm +++ b/code/modules/mapping/space_management/space_reservation.dm @@ -19,7 +19,7 @@ SSmapping.reserve_turfs(v) /datum/turf_reservation/proc/Reserve(width, height, zlevel) - if(width > world.maxx || height > world.maxy) + if(width > world.maxx || height > world.maxy || width < 1 || height < 1) return FALSE var/list/avail = SSmapping.unused_turfs["[zlevel]"] var/turf/BL @@ -33,7 +33,7 @@ continue if(BL.x + width > world.maxx || BL.y + height > world.maxy) continue - TR = locate(BL.x + width, BL.y + height, BL.z) + TR = locate(BL.x + width - 1, BL.y + height - 1, BL.z) if(!(TR.flags_1 & UNUSED_RESERVATION_TURF_1)) continue final = block(BL, TR)