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

Function MiO_SetCameraMass

src/MenuOptions.c:1113–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111*#########################################################################################################################*/
1112static void MiO_GetCameraMass(cc_string* v) { String_AppendFloat(v, Camera.Mass, 2); }
1113static void MiO_SetCameraMass(const cc_string* c) {
1114 Camera.Mass = Menu_Float(c);
1115 Options_Set(OPT_CAMERA_MASS, c);
1116}
1117
1118static void MiO_GetReach(cc_string* v) { String_AppendFloat(v, Entities.CurPlayer->ReachDistance, 2); }
1119static void MiO_SetReach(const cc_string* v) { Entities.CurPlayer->ReachDistance = Menu_Float(v); }

Callers

nothing calls this directly

Calls 2

Menu_FloatFunction · 0.85
Options_SetFunction · 0.85

Tested by

no test coverage detected