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

View file

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