Add an override of the ! operator to lsl integer.

Fixes Mantis #3041
0.6.3-post-fixes
idb 2009-01-25 10:17:26 +00:00
parent 444320e4a6
commit aa2521623c
1 changed files with 5 additions and 0 deletions

View File

@ -1704,6 +1704,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
return ret; return ret;
} }
static public LSLInteger operator !(LSLInteger i1)
{
return i1.value == 0 ? 1 : 0;
}
public static LSLInteger operator ++(LSLInteger i) public static LSLInteger operator ++(LSLInteger i)
{ {
i.value++; i.value++;