You can construct the category list in a quick pass over all units. No need to write it explicitly.FLOZi wrote:No you wouldn't.
Code: Select all
categories = {}
for _, unitDef in pairs(UnitDefs) do
categories[unitDef.category] = true
You can construct the category list in a quick pass over all units. No need to write it explicitly.FLOZi wrote:No you wouldn't.
Code: Select all
categories = {}
for _, unitDef in pairs(UnitDefs) do
categories[unitDef.category] = true
viewtopic.php?p=566437#p566437abma wrote:(not sure if its explicitly written there, a lot of useful got lost because of the "flamewar"
Can you check that again with dev version of engine?Floris wrote:looking good!
Except whole map + untis are black!