mirror of
https://github.com/opensim/opensim.git
synced 2026-07-08 05:36:27 +08:00
Adding explicit cast from LSLFloat to LSLInteger. Work on issue 1822.
This commit is contained in:
@@ -1291,6 +1291,11 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
return new LSLInteger(d);
|
||||
}
|
||||
|
||||
static public explicit operator LSLInteger(LSLFloat f)
|
||||
{
|
||||
return new LSLInteger(f.value);
|
||||
}
|
||||
|
||||
static public bool operator ==(LSLInteger i1, LSLInteger i2)
|
||||
{
|
||||
bool ret = i1.value == i2.value;
|
||||
|
||||
Reference in New Issue
Block a user