The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.13 (Linux)
File Line Function
/showthread.php 906 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Boolean values in scene files
#1
The new scene parser that was added some time ago supports a new way of defining boolean values.

In original colobot, there was no real boolean values, just numbers - 0 for false, 1 for true.
Now, you can actually use true/false for these values.

Code:
CreateObject selectable=0     // old syntax
CreateObject selectable=false     // new syntax

My only question now is: Should the true/false become the new recommended standard used in default Colobot scene files, or should we keep using 1/0?


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)