2025-08-10 13:12 CEST

spring: develop 6147ca7c Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
Tobi Vollebregt Tobi Vollebregt develop 2009-05-09 17:36:36 develop f2d77ef2
Changeset LuaUnitScript: allocate scriptIndex slots for number of weapons unit has

This is instead of allocating slots for max weapons for each unit, which
would mean each unit with a CLuaUnitScript would use 1152 bytes more then
a unit using COB. Each unit still uses about 224 (assuming 3 weapons
on average) more for the per-unit scriptIndex vector.
mod - rts/Sim/Units/COB/LuaUnitScript.cpp Diff ] File ]