Changeset 3347
- Timestamp:
- 12/02/08 02:01:51 (5 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/mods/ca/lups/lups.lua
r3171 r3347 83 83 local scGetReadAllyTeam = Script.GetReadAllyTeam 84 84 local spGetUnitPieceMap = Spring.GetUnitPieceMap 85 local spValidUnitID = Spring.ValidUnitID 85 86 86 87 local glUnitPieceMatrix = gl.UnitPieceMatrix … … 378 379 end 379 380 381 if (Options.unit)and(not spValidUnitID(Options.unit)) then 382 print(PRIO_LESS,'LUPS->AddFX: unit is already dead/invalid "' .. Class .. '"'); 383 return -1; 384 end 385 380 386 --// piecename to piecenum conversion (spring >=76b1 only!) 381 if (Options.unit and Options.piece) and(spGetUnitPieceMap)then387 if (Options.unit and Options.piece) then 382 388 Options.piecenum = spGetUnitPieceMap(Options.unit)[Options.piece] 383 389 if (not Options.piecenum) then