minor: Use Vector2.Zero constant and only set in condition branch where it was missing in TryParseConsole2DVector(). xbuild still compiles.

0.8.0.3
Justin Clark-Casey (justincc) 2014-04-30 21:50:18 +01:00
parent 7c121a2acc
commit f0411dc128
1 changed files with 2 additions and 1 deletions

View File

@ -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