Skip to content

Commit

Permalink
Add flags together instead of either-or
Browse files Browse the repository at this point in the history
  • Loading branch information
kibook committed Jul 17, 2021
1 parent cd60168 commit e714d1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,11 @@ function ConvertDatabaseToYmap(database)
maxZ = properties.z
end

local flags = properties.isFrozen and '32' or '1572865'
local flags = 1572865

if properties.isFrozen then
flags = flags + 32
end

entitiesXml = entitiesXml .. '\t\t<Item type="CEntityDef">\n'
entitiesXml = entitiesXml .. '\t\t\t<archetypeName>' .. properties.name .. '</archetypeName>\n'
Expand Down

0 comments on commit e714d1b

Please sign in to comment.