diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-10 15:28:12 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-10 15:28:12 +0200 |
commit | 697fbdabf10d956e0f13bfbc9414d3db40f0c535 (patch) | |
tree | ab80ba3119d07b11da5478009b905edb702c103f /src/script/cmdtoken.cpp | |
parent | 680af178196217bdd255d2bc851f240983144ac1 (diff) | |
download | colobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.tar.gz colobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.tar.bz2 colobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.zip |
BOOL -> bool; additional fixes in constructors/destructors
Diffstat (limited to 'src/script/cmdtoken.cpp')
-rw-r--r-- | src/script/cmdtoken.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/cmdtoken.cpp b/src/script/cmdtoken.cpp index 5eac291..e8785ca 100644 --- a/src/script/cmdtoken.cpp +++ b/src/script/cmdtoken.cpp @@ -50,7 +50,7 @@ char* SkipSpace(char *line) // Checks if a line contains a command.
-BOOL Cmd(char *line, char *token)
+bool Cmd(char *line, char *token)
{
char* p;
@@ -87,7 +87,7 @@ char* SearchArg(char *line, int rank) for ( i=0 ; i<rank ; i++ )
{
- while ( TRUE )
+ while ( true )
{
c = *line++;
if ( c == ';' ) break;
@@ -114,7 +114,7 @@ int GetInt(char *line, int rank, int def) p[1] == 'x' ) // begins with "0x" (hexadecimal)?
{
p += 2;
- while ( TRUE )
+ while ( true )
{
if ( *p >= '0' && *p <= '9' )
{
|