remove some duplicate code

This commit is contained in:
Matt Smith
2015-02-07 15:52:11 +00:00
parent 6bfbbaa65b
commit ae0b1cf606
@@ -23,10 +23,7 @@ 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(!chunkschunkGenerated(x, y, z))
chunks[key] = new /datum/camerachunk(null, x, y, z)
return chunks[key]