Page 1 of 1

Boolean or 0/1?

Posted: 22 Sep 2012, 18:41
by LEDZ
I've witnessed Déjà vu with this:

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...
         }
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

Re: Boolean or 0/1?

Posted: 23 Sep 2012, 02:19
by jK

Re: Boolean or 0/1?

Posted: 24 Sep 2012, 12:41
by LEDZ
Nice one. Everyone will have to update widgets for next spring version then yes?

Re: Boolean or 0/1?

Posted: 24 Sep 2012, 19:13
by knorke
Everyone will have to update widgets for next spring version then yes?
i think it will continue to work as before

Re: Boolean or 0/1?

Posted: 15 Mar 2013, 23:24
by Silentwings
Seems not, at least red console needs to be changed.