mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Enables cast from int to float for MOD* functions;
Thanks SignpostMarv!
This commit is contained in:
@@ -310,7 +310,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
// ---------- Integer ----------
|
||||
else if (lslparm is LSL_Integer)
|
||||
{
|
||||
if (type == typeof(int))
|
||||
if (type == typeof(int) || type == typeof(float))
|
||||
return (int)(LSL_Integer)lslparm;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user