Merge pull request #19 from ScatterBox/main

This commit is contained in:
Ian 2023-01-22 20:23:47 -05:00 committed by GitHub
commit 19d37fd426
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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