From f0411dc128b232431b936f28711b6ee0197a2f51 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 30 Apr 2014 21:50:18 +0100 Subject: minor: Use Vector2.Zero constant and only set in condition branch where it was missing in TryParseConsole2DVector(). xbuild still compiles. --- OpenSim/Framework/Console/ConsoleUtil.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework/Console/ConsoleUtil.cs') 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 // We don't use Vector2.TryParse() for now because for some reason it expects an input with 3 components // rather than 2. string cookedVector = CookVector(rawConsoleVector, 2, blankComponentFunc); - vector = new Vector2(0.0f); if (cookedVector == null) { + vector = Vector2.Zero; + return false; } else -- cgit v1.1