Enables cast from int to float for MOD* functions;

Thanks SignpostMarv!
integration
Mic Bowman 2012-09-05 09:13:16 -07:00
parent 15d5f3d09d
commit 641b08aa78
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// ---------- Integer ---------- // ---------- Integer ----------
else if (lslparm is LSL_Integer) else if (lslparm is LSL_Integer)
{ {
if (type == typeof(int)) if (type == typeof(int) || type == typeof(float))
return (int)(LSL_Integer)lslparm; return (int)(LSL_Integer)lslparm;
} }