MCPcopy Create free account
hub / github.com/assaultcube/AC / mulf_

Function mulf_

source/src/command.cpp:1447–1453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1445COMMANDN(+f, addf_, "v");
1446
1447void mulf_(char **args, int numargs)
1448{
1449 float prod = 1;
1450 if(numargs < 2) numargs = 2; // emulate classic (* ) = 0, (* 2) = 0, (* 2 3) = 6
1451 loopi(numargs) prod *= atof(args[i]);
1452 floatret(prod);
1453}
1454COMMANDN(*f, mulf_, "v");
1455
1456void sub_(int *a, int *b) { intret(*a - *b); } COMMANDN(-, sub_, "ii");

Callers

nothing calls this directly

Calls 2

floatretFunction · 0.85
loopiFunction · 0.70

Tested by

no test coverage detected