mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-09-18 16:37:25 +00:00
oops
This commit is contained in:
@@ -883,7 +883,8 @@ getWaypointLinesFromFile( filename )
|
||||
result = spawnStruct();
|
||||
result.lines = [];
|
||||
|
||||
waypointStr = fileRead( filename );
|
||||
// todo read line by line
|
||||
waypointStr = fs_fileread( filename );
|
||||
|
||||
if ( !isDefined( waypointStr ) )
|
||||
return result;
|
||||
@@ -918,7 +919,7 @@ readWpsFromFile( mapname )
|
||||
waypoints = [];
|
||||
filename = "waypoints/" + mapname + "_wp.csv";
|
||||
|
||||
if ( !fileExists( filename ) )
|
||||
if ( !fs_testfile( filename ) )
|
||||
return waypoints;
|
||||
|
||||
res = getWaypointLinesFromFile( filename );
|
||||
|
Reference in New Issue
Block a user