MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Zbytek

Function Zbytek

engine/Evaluator/express.cpp:391–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389 return (float)oper1 / (float)oper2;
390}
391static GameValue Zbytek(const GameState* state, GameValuePar oper1, GameValuePar oper2)
392{
393 if ((float)oper2 == 0)
394 {
395 state->SetError(EvalDivZero);
396 return 0.0f;
397 }
398 return (float)fmod((float)oper1, (float)oper2);
399}
400static GameValue Na(const GameState* state, GameValuePar oper1, GameValuePar oper2)
401{
402 return (float)pow((float)oper1, (float)oper2);

Callers

nothing calls this directly

Calls 1

SetErrorMethod · 0.45

Tested by

no test coverage detected