mirror of
https://github.com/veden/Rampant.git
synced 2025-03-17 20:58:35 +02:00
reset squad and builder count on upgrade
This commit is contained in:
parent
38e83283fc
commit
2a534af8df
@ -408,9 +408,6 @@ function upgrade.attempt(universe)
|
||||
global.pendingChunks = nil
|
||||
global.natives = nil
|
||||
global.map = nil
|
||||
|
||||
universe.builderCount = 0
|
||||
universe.squadCount = 0
|
||||
end
|
||||
if global.version < 116 then
|
||||
global.version = 116
|
||||
@ -428,6 +425,8 @@ function upgrade.attempt(universe)
|
||||
universe.maps = {}
|
||||
universe.activeMap = nil
|
||||
universe.mapIterator = nil
|
||||
universe.builderCount = 0
|
||||
universe.squadCount = 0
|
||||
|
||||
game.print("Rampant - Version 2.0.0")
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user