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

Function Rect_Parse

code/ui/ui_shared.cpp:1984–2000  ·  view source on GitHub ↗

================= Rect_Parse ================= */

Source from the content-addressed store, hash-verified

1982=================
1983*/
1984qboolean Rect_Parse(const char **p, rectDef_t *r)
1985{
1986 if (!COM_ParseFloat(p, &r->x))
1987 {
1988 if (!COM_ParseFloat(p, &r->y))
1989 {
1990 if (!COM_ParseFloat(p, &r->w))
1991 {
1992 if (!COM_ParseFloat(p, &r->h))
1993 {
1994 return qtrue;
1995 }
1996 }
1997 }
1998 }
1999 return qfalse;
2000}
2001
2002qboolean Script_SetItemRect(itemDef_t *item, const char **args)
2003{

Callers 1

Script_SetItemRectFunction · 0.70

Calls 1

COM_ParseFloatFunction · 0.50

Tested by

no test coverage detected