MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Script_Orbit

Function Script_Orbit

code/ui/ui_shared.cpp:2922–2938  ·  view source on GitHub ↗

================= Script_Orbit ================= */

Source from the content-addressed store, hash-verified

2920=================
2921*/
2922qboolean Script_Orbit(itemDef_t *item, const char **args)
2923{
2924 const char *name;
2925 float cx, cy, x, y;
2926 int time;
2927
2928 if (String_Parse(args, &name))
2929 {
2930// if ( Float_Parse(args, &x) && Float_Parse(args, &y) && Float_Parse(args, &cx) && Float_Parse(args, &cy) && Int_Parse(args, &time) )
2931 if ( !COM_ParseFloat(args, &x) && !COM_ParseFloat(args, &y) && !COM_ParseFloat(args, &cx) && !COM_ParseFloat(args, &cy) && Int_Parse(args, &time) )
2932 {
2933 Menu_OrbitItemByName((menuDef_t *) item->parent, name, x, y, cx, cy, time);
2934 }
2935 }
2936
2937 return qtrue;
2938}
2939
2940
2941commandDef_t commandList[] =

Callers

nothing calls this directly

Calls 4

String_ParseFunction · 0.70
Int_ParseFunction · 0.70
Menu_OrbitItemByNameFunction · 0.70
COM_ParseFloatFunction · 0.50

Tested by

no test coverage detected