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

Function ClO_SetHacks

src/MenuOptions.c:598–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596
597static cc_bool ClO_GetHacks(void) { return Entities.CurPlayer->Hacks.Enabled; }
598static void ClO_SetHacks(cc_bool v) {
599 Entities.CurPlayer->Hacks.Enabled = v;
600 Options_SetBool(OPT_HACKS_ENABLED, v);
601 HacksComp_Update(&Entities.CurPlayer->Hacks);
602}
603
604static void ClassicOptionsScreen_RecreateExtra(struct MenuOptionsScreen* s) {
605 ButtonWidget_SetConst(&s->buttons[9], "Controls...", &s->titleFont);

Callers

nothing calls this directly

Calls 2

Options_SetBoolFunction · 0.85
HacksComp_UpdateFunction · 0.85

Tested by

no test coverage detected