Hi,
I just saw the following in the script parse source code:
// skip double slash comments
if ( c == '/' && data[1] == '/' )
{
data += 2;
while (*data && *data != '
') {
data++;
}
// com_lines++;
}
// skip /* */ comments
else if ( c=='/' && data[1] == '*' )
{
data += 2;
while ( *data && ( *data != '*' || data[1] != '/' ) )
{
data++;
if(*data == '
') {
// com_lines++;
}
}
if ( *data )
{
data += 2;
}
}
else
{
break;
}
Especially the // skip /* */ comments part…
Are these kind of comments allowed in W:ET map scripts?
game_manager
{
spawn
{
wait 150
/* this is
a multi-line
comment... */
wm_setwinner 1
}
}
Is that allowed?
will be released in a few weeks i think. nothing outnormous lol (commercial). so to get back on topic. this code is quiete proof enough that those c-style comments seem to work, becaus when i walk over the multiple it only prints to me the message hi2. hope this helps 