GetTeamInfo changed in 0.76b1

GetTeamInfo changed in 0.76b1

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

GetTeamInfo changed in 0.76b1

Post by MelTraX »

The changelog has a little note that the third return value (active) has been removed from Spring.GetTeamInfo()..

This change is not documented in API.txt yet and it breaks pretty much every use of GetTeamInfo()..

The team color should be obtained with GetTeamColor() now though I don't know if it still works with GetTeamInfo()..
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: GetTeamInfo changed in 0.76b1

Post by Tobi »

Yes, I put it in changelog.txt. 3rd return value is gone (team->active, was useless+bugged anyway), and people didn't think it was worth returning a dummy value to maintain compatibility because all of LUA changed anyway.
Post Reply

Return to “Lua Scripts”