Boolean or 0/1?
Posted: 22 Sep 2012, 18:41
I've witnessed Déjà vu with this:
The 'boolean' spectator is actually stored as 1 or 0 (true or false).
Is there a reason? I'm not sure if I should edit the wiki or not.
Any thoughts?
http://springrts.com/wiki/Lua_UnsyncedRead
Code: Select all
Spring.GetPlayerRoster
( [number sortType] ) ->
nil | playerTable = {
[1] = {
string name,
number playerID,
number teamID,
number allyTeamID,
boolean spectator,
number cpuUsage,
number pingTime
},
etc...
}
Is there a reason? I'm not sure if I should edit the wiki or not.
Any thoughts?
http://springrts.com/wiki/Lua_UnsyncedRead