MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / HacksComp_ParseFlagInt

Function HacksComp_ParseFlagInt

src/EntityComponents.c:188–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188static int HacksComp_ParseFlagInt(const char* flagRaw, struct HacksComp* hacks) {
189 cc_string raw = HacksComp_UNSAFE_FlagValue(flagRaw, hacks);
190 int value;
191
192 if (!raw.length || Game_ClassicMode) return 1;
193 if (!Convert_ParseInt(&raw, &value)) return 1;
194 return value;
195}
196
197static void HacksComp_ParseFlag(struct HacksComp* hacks, const char* include, const char* exclude, cc_bool* target) {
198 cc_string* joined = &hacks->HacksFlags;

Callers 1

HacksComp_RecheckFlagsFunction · 0.85

Calls 2

Convert_ParseIntFunction · 0.85

Tested by

no test coverage detected