================= Script_Orbit ================= */
| 2920 | ================= |
| 2921 | */ |
| 2922 | qboolean 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 | |
| 2941 | commandDef_t commandList[] = |
nothing calls this directly
no test coverage detected