mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Backport math.fmod to 1.12's Lua 5.0. Pure 5.0->5.1 rename: 5.0 ships the identical C function as math.mod (mathlib entry, FUN 0x007FAFD0 — checknumber(1/2) -> fmod -> pushnumber); 5.1 renamed the Lua-facing entry to math.fmod. Registered as a direct alias of that function pointer on both the in-game and glue states (BaseLib::MathLib), no wrapper. math.mod stays available, so code written for either name works.