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

Function ParseRect

code/ui/ui_shared.cpp:11450–11466  ·  view source on GitHub ↗

================= ParseRect ================= */

Source from the content-addressed store, hash-verified

11448=================
11449*/
11450qboolean ParseRect(const char **p, rectDef_t *r)
11451{
11452 if (!COM_ParseFloat(p, &r->x))
11453 {
11454 if (!COM_ParseFloat(p, &r->y))
11455 {
11456 if (!COM_ParseFloat(p, &r->w))
11457 {
11458 if (!COM_ParseFloat(p, &r->h))
11459 {
11460 return qtrue;
11461 }
11462 }
11463 }
11464 }
11465 return qfalse;
11466}
11467
11468
11469/*

Callers 2

Script_TransitionFunction · 0.70
Script_Transition2Function · 0.70

Calls 1

COM_ParseFloatFunction · 0.50

Tested by

no test coverage detected