Skip to content

Commit

Permalink
Merge pull request tgstation#7592 from psykzz/patch-8
Browse files Browse the repository at this point in the history
remove some duplicate code
  • Loading branch information
gcoremans committed Feb 10, 2015
2 parents 7483411 + b2ad540 commit e971a1a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/modules/mob/living/silicon/ai/freelook/cameranet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ var/datum/cameranet/cameranet = new()
// Returns the chunk in the x, y, z.
// If there is no chunk, it creates a new chunk and returns that.
/datum/cameranet/proc/getCameraChunk(x, y, z)
x &= ~(CHUNK_SIZE - 1)
y &= ~(CHUNK_SIZE - 1)
var/key = "[x],[y],[z]"
if(!chunks[key])
if(!chunkGenerated(x, y, z))
chunks[key] = new /datum/camerachunk(null, x, y, z)

return chunks[key]
Expand Down

0 comments on commit e971a1a

Please sign in to comment.