mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-29 23:21:51 +00:00
Merge pull request #19 from ScatterBox/main
This commit is contained in:
commit
19d37fd426
1 changed files with 30 additions and 1 deletions
|
@ -2457,6 +2457,35 @@ void Open_Waypoint (void)
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
=================
|
||||||
|
Close_Waypoint
|
||||||
|
|
||||||
|
void Close_Waypoint (string, string, string, string, string, string, string, string)
|
||||||
|
|
||||||
|
moto - basically a carbon copy of open_waypoint lol
|
||||||
|
=================
|
||||||
|
*/
|
||||||
|
void Close_Waypoint (void)
|
||||||
|
{
|
||||||
|
int i, t;
|
||||||
|
char *p = G_STRING(OFS_PARM0);
|
||||||
|
|
||||||
|
for (i = 1; i < MAX_WAYPOINTS; i++)
|
||||||
|
{
|
||||||
|
if (waypoints[i].special[0])//no need to open without tag
|
||||||
|
{
|
||||||
|
if (!strcmp(p, waypoints[i].special))
|
||||||
|
{
|
||||||
|
waypoints[i].open = 0;
|
||||||
|
t = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
=================
|
||||||
|
@ -3253,7 +3282,7 @@ static builtin_t pr_builtin[] =
|
||||||
Get_Next_Waypoint, // #86
|
Get_Next_Waypoint, // #86
|
||||||
PF_useprint, // #87
|
PF_useprint, // #87
|
||||||
Get_First_Waypoint, // #88
|
Get_First_Waypoint, // #88
|
||||||
NULL, // #89
|
Close_Waypoint, // #89
|
||||||
PF_tracebox, // #90
|
PF_tracebox, // #90
|
||||||
NULL, // #91
|
NULL, // #91
|
||||||
NULL, // #92
|
NULL, // #92
|
||||||
|
|
Loading…
Reference in a new issue