mirror of
https://git.code.sf.net/p/quake/game-source
synced 2024-11-25 05:11:58 +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 "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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue