diff options
author | Melanie Thielker | 2008-09-02 04:15:06 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-02 04:15:06 +0000 |
commit | e2a0a04beb9cc0a72fd8d658cec2b27cbc6aa95b (patch) | |
tree | 9f5eb48f7cd313d11dbaa32e97ab60d6e970fc07 /OpenSim/Region/ScriptEngine/Shared/CodeTools | |
parent | Change some chat output functions so that text is truncated at (diff) | |
download | opensim-SC_OLD-e2a0a04beb9cc0a72fd8d658cec2b27cbc6aa95b.zip opensim-SC_OLD-e2a0a04beb9cc0a72fd8d658cec2b27cbc6aa95b.tar.gz opensim-SC_OLD-e2a0a04beb9cc0a72fd8d658cec2b27cbc6aa95b.tar.bz2 opensim-SC_OLD-e2a0a04beb9cc0a72fd8d658cec2b27cbc6aa95b.tar.xz |
Remove the ((bool)()) cast, since it can make c# barf
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs index c8d1d16..b357ab6 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs | |||
@@ -470,9 +470,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
470 | { | 470 | { |
471 | string retstr = String.Empty; | 471 | string retstr = String.Empty; |
472 | 472 | ||
473 | retstr += GenerateIndented("if ((bool)(", ifs); | 473 | retstr += GenerateIndented("if (", ifs); |
474 | retstr += GenerateNode((SYMBOL) ifs.kids.Pop()); | 474 | retstr += GenerateNode((SYMBOL) ifs.kids.Pop()); |
475 | retstr += GenerateLine("))"); | 475 | retstr += GenerateLine(")"); |
476 | 476 | ||
477 | // CompoundStatement handles indentation itself but we need to do it | 477 | // CompoundStatement handles indentation itself but we need to do it |
478 | // otherwise. | 478 | // otherwise. |