================= Rect_Parse ================= */
| 1982 | ================= |
| 1983 | */ |
| 1984 | qboolean 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 | |
| 2002 | qboolean Script_SetItemRect(itemDef_t *item, const char **args) |
| 2003 | { |
no test coverage detected