diff options
author | Justin Clark-Casey (justincc) | 2014-04-30 21:50:18 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-04-30 21:50:18 +0100 |
commit | f0411dc128b232431b936f28711b6ee0197a2f51 (patch) | |
tree | ef652e9445ca4ed1827b17901a2fcc598b6f477e /OpenSim/Framework/Console | |
parent | Change XEngine to call StateChange rather than RemoveScript on state changes (diff) | |
download | opensim-SC-f0411dc128b232431b936f28711b6ee0197a2f51.zip opensim-SC-f0411dc128b232431b936f28711b6ee0197a2f51.tar.gz opensim-SC-f0411dc128b232431b936f28711b6ee0197a2f51.tar.bz2 opensim-SC-f0411dc128b232431b936f28711b6ee0197a2f51.tar.xz |
minor: Use Vector2.Zero constant and only set in condition branch where it was missing in TryParseConsole2DVector(). xbuild still compiles.
Diffstat (limited to 'OpenSim/Framework/Console')
-rw-r--r-- | OpenSim/Framework/Console/ConsoleUtil.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/Console/ConsoleUtil.cs b/OpenSim/Framework/Console/ConsoleUtil.cs index 3711cb1..744f652 100644 --- a/OpenSim/Framework/Console/ConsoleUtil.cs +++ b/OpenSim/Framework/Console/ConsoleUtil.cs | |||
@@ -284,10 +284,11 @@ namespace OpenSim.Framework.Console | |||
284 | // We don't use Vector2.TryParse() for now because for some reason it expects an input with 3 components | 284 | // We don't use Vector2.TryParse() for now because for some reason it expects an input with 3 components |
285 | // rather than 2. | 285 | // rather than 2. |
286 | string cookedVector = CookVector(rawConsoleVector, 2, blankComponentFunc); | 286 | string cookedVector = CookVector(rawConsoleVector, 2, blankComponentFunc); |
287 | vector = new Vector2(0.0f); | ||
288 | 287 | ||
289 | if (cookedVector == null) | 288 | if (cookedVector == null) |
290 | { | 289 | { |
290 | vector = Vector2.Zero; | ||
291 | |||
291 | return false; | 292 | return false; |
292 | } | 293 | } |
293 | else | 294 | else |