Skip to content

Commit

Permalink
Fixed the leftmost and bottommost 15 turfs not having camera static
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruix committed Jan 4, 2017
1 parent be9069f commit 58a30d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/silicon/ai/freelook/chunk.dm
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
if(c.can_use())
cameras += c

for(var/turf/t in block(locate(x, y, z), locate(min(x + CHUNK_SIZE - 1, world.maxx), min(y + CHUNK_SIZE - 1, world.maxy), z)))
for(var/turf/t in block(locate(max(x, 1), max(y, 1), z), locate(min(x + CHUNK_SIZE - 1, world.maxx), min(y + CHUNK_SIZE - 1, world.maxy), z)))
turfs[t] = t

for(var/camera in cameras)
Expand Down

0 comments on commit 58a30d1

Please sign in to comment.