Merged destructor parsing from tr00per/dev

Merge branch 'dev' of https://github.com/tr00per/colobot into dev
master
krzys-h 2015-07-13 19:24:43 +02:00
commit 4d7de592b4
1 changed files with 11 additions and 0 deletions

View File

@ -246,6 +246,17 @@ CBotToken* CBotToken::NextToken(char* &program, int& error, bool first)
mot = c; // built the word
c = *(program++); // next character
// special case for destructors
if ( mot[0] == '~')
{
while (c != 0 && !CharInList(c, sep1))
{
mot += c;
c = *(program++);
}
stop = true;
}
// special case for strings
if ( mot[0] == '\"' )
{