mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2025-10-29 04:16:59 +00:00
wp editor
This commit is contained in:
@@ -34,6 +34,10 @@ BotBuiltinPrintConsole( s )
|
||||
{
|
||||
[[ level.bot_builtins[ "printconsole" ] ]]( s );
|
||||
}
|
||||
else
|
||||
{
|
||||
println( s );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1458,25 +1462,18 @@ readWpsFromFile( mapname )
|
||||
for ( i = 1; i <= waypointCount; i++ )
|
||||
{
|
||||
argc = freadln( f );
|
||||
line = "";
|
||||
tokens = [];
|
||||
|
||||
for ( h = 0; h < argc; h++ )
|
||||
{
|
||||
line += fgetarg( f, h );
|
||||
|
||||
if ( h < argc - 1 )
|
||||
{
|
||||
line += ",";
|
||||
}
|
||||
tokens[ h ] = fgetarg( f, h );
|
||||
}
|
||||
|
||||
if ( !isdefined( line ) || line == "" )
|
||||
if ( !isdefined( tokens ) || !tokens.size )
|
||||
{
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
tokens = strtok( line, "," );
|
||||
|
||||
waypoint = parseTokensIntoWaypoint( tokens );
|
||||
|
||||
waypoints[ i - 1 ] = waypoint;
|
||||
|
||||
Reference in New Issue
Block a user