mirror of
https://git.code.sf.net/p/quake/game-source
synced 2024-11-22 03:51:12 +00:00
waypoint saving works (wrong place, but oh well)
This commit is contained in:
parent
aa731990e2
commit
0a1864a583
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue