Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Boolean values in scene files
#4
(05-30-2015, 04:43 PM)Raptor Wrote: I think there should be support for both standards.
Both standards are supported, I'm just asking which should be the preferred one.

(05-30-2015, 05:42 PM)Simbax Wrote: I have a question if does it work the following way: 0 is false, any other value is true?
I'm not sure. It's whatever boost::lexical_cast uses. It's probably either 0 = false, anything else = true or 0 = false, 1 = true, anything else = level loading error.
In the old implementation this really depended on the actual command (some did if(param == 0) {} else {}, others did if(param == 1) {} else {}). It's more standarized now.


Messages In This Thread
Boolean values in scene files - by krzys_h - 05-30-2015, 04:25 PM
RE: Boolean values in scene files - by Simbax - 05-30-2015, 05:42 PM
RE: Boolean values in scene files - by krzys_h - 05-30-2015, 08:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)