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:
parent
88d5c1f65d
commit
839ee4754f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user