diff options
author | Justin Clark-Casey (justincc) | 2012-10-05 03:58:52 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-10-05 03:58:52 +0100 |
commit | 68859af3f8c610e562351a328a78a987ab7f229d (patch) | |
tree | d8b255eae6e3f98f47e88c6d7061eef24b22911d /OpenSim | |
parent | Add missing ConsoleUtil from last commit (diff) | |
download | opensim-SC-68859af3f8c610e562351a328a78a987ab7f229d.zip opensim-SC-68859af3f8c610e562351a328a78a987ab7f229d.tar.gz opensim-SC-68859af3f8c610e562351a328a78a987ab7f229d.tar.bz2 opensim-SC-68859af3f8c610e562351a328a78a987ab7f229d.tar.xz |
Add Vector3.Zero return on TryParseConsoleVector() which fails on mono 2.4.3 but not mono 2.10.9
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Console/ConsoleUtil.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/Console/ConsoleUtil.cs b/OpenSim/Framework/Console/ConsoleUtil.cs index a254be0..2612a50 100644 --- a/OpenSim/Framework/Console/ConsoleUtil.cs +++ b/OpenSim/Framework/Console/ConsoleUtil.cs | |||
@@ -83,7 +83,10 @@ public class ConsoleUtil | |||
83 | List<string> components = rawConsoleVector.Split(VectorSeparatorChars).ToList(); | 83 | List<string> components = rawConsoleVector.Split(VectorSeparatorChars).ToList(); |
84 | 84 | ||
85 | if (components.Count < 1 || components.Count > 3) | 85 | if (components.Count < 1 || components.Count > 3) |
86 | { | ||
87 | vector = Vector3.Zero; | ||
86 | return false; | 88 | return false; |
89 | } | ||
87 | 90 | ||
88 | for (int i = components.Count; i < 3; i++) | 91 | for (int i = components.Count; i < 3; i++) |
89 | components.Add(""); | 92 | components.Add(""); |