waypoint saving works (wrong place, but oh well)

This commit is contained in:
Bill Currie 2006-12-20 12:09:31 +00:00
parent aa731990e2
commit 0a1864a583
2 changed files with 5 additions and 2 deletions

View file

@ -3,6 +3,7 @@
#include "string.h"
#include "PropertyList.h"
#include "qfile.h"
#include "qfs.h"
#include "editor.h"
@interface TeleportMenu: ImpulseValueMenu
@ -753,7 +754,7 @@
local QFile file;
local PLItem plist;
file = Qopen ("temp.way", "wt");
file = QFS_Open ("temp.way", "wt");
if (!file) {
sprint (@self, PRINT_HIGH, "cound not create file temp.way\n");
return self;

View file

@ -338,6 +338,7 @@ Waypoint Loading from file
else
[l addObject:[PLItem newString:"0"]];
}
[way addKey:"link" value:l];
[way addKey:"flags" value:[PLItem newString:itos (flags)]];
[list addObject:way];
}
@ -345,8 +346,9 @@ Waypoint Loading from file
+(PLItem) plist
{
local PLItem list = [PLItem newArray];
[waypoint_array makeObjectsPerformSelector:@selector(plitem)
[waypoint_array makeObjectsPerformSelector:@selector(plitem:)
withObject:list];
return list;
}
-(void) checkWay:(Target)ent