diff options
author | Justin Clark-Casey (justincc) | 2011-07-09 01:17:35 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-07-09 01:17:35 +0100 |
commit | 52c3671aa07c5d4c91908a8e1b15b76e96cc49c0 (patch) | |
tree | e48879d75d2314140e4723ddf3759061ab7a517d | |
parent | lsGetWindlightScene() returns raw int value, which makes unable to compare to... (diff) | |
download | opensim-SC_OLD-52c3671aa07c5d4c91908a8e1b15b76e96cc49c0.zip opensim-SC_OLD-52c3671aa07c5d4c91908a8e1b15b76e96cc49c0.tar.gz opensim-SC_OLD-52c3671aa07c5d4c91908a8e1b15b76e96cc49c0.tar.bz2 opensim-SC_OLD-52c3671aa07c5d4c91908a8e1b15b76e96cc49c0.tar.xz |
fix formatting issues from last patch
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 0839ab4..e0a4014 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -1741,13 +1741,18 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1741 | 1741 | ||
1742 | public override bool Equals(Object o) | 1742 | public override bool Equals(Object o) |
1743 | { | 1743 | { |
1744 | if (!(o is LSLInteger)) { | 1744 | if (!(o is LSLInteger)) |
1745 | if(o is int) { | 1745 | { |
1746 | if (o is int) | ||
1747 | { | ||
1746 | return value == (int)o; | 1748 | return value == (int)o; |
1747 | } else { | 1749 | } |
1750 | else | ||
1751 | { | ||
1748 | return false; | 1752 | return false; |
1749 | } | 1753 | } |
1750 | } | 1754 | } |
1755 | |||
1751 | return value == ((LSLInteger)o).value; | 1756 | return value == ((LSLInteger)o).value; |
1752 | } | 1757 | } |
1753 | 1758 | ||