1
0
mirror of https://github.com/veden/Rampant.git synced 2025-02-05 13:14:51 +02:00

code clean up in mapProcessor simplifing logic

This commit is contained in:
Aaron Veden 2021-12-04 16:44:59 -08:00
parent 88d5c1f65d
commit 839ee4754f
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84

View File

@ -123,7 +123,7 @@ function mapProcessor.processMap(map, tick)
for x=index,endIndex,step do
local chunk = processQueue[x]
if chunk and (chunk[CHUNK_TICK] ~= tick) then
if chunk[CHUNK_TICK] ~= tick then
chunk[CHUNK_TICK] = tick
processPheromone(map, chunk)
end
@ -253,12 +253,7 @@ function mapProcessor.processPlayers(players, map, tick)
queueNestSpawners(map, chunk, tick)
if vengence then
local count = map.vengenceQueue[chunk]
if not count then
count = 0
map.vengenceQueue[chunk] = count
end
map.vengenceQueue[chunk] = count + 1
map.vengenceQueue[chunk] = (map.vengenceQueue[chunk] or 0) + 1
end
end
end