Fix some typos in vector strings.

This commit is contained in:
RoosterDragon
2015-12-10 21:53:11 +00:00
parent 4ed5a24bbe
commit 654ca6ed03
3 changed files with 3 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ namespace OpenRA
set set
{ {
throw new LuaException("WVec is read-only. Use CVec.New to create a new value"); throw new LuaException("CVec is read-only. Use CVec.New to create a new value");
} }
} }

View File

@@ -38,7 +38,7 @@ namespace OpenRA
// The bottom edge is trickier: cells at MPos.V > bottomRight.V may have // The bottom edge is trickier: cells at MPos.V > bottomRight.V may have
// been projected into this region if they have height > 0. // been projected into this region if they have height > 0.
// Each height step is equivalent to 512 WRange units, which is one MPos // Each height step is equivalent to 512 WDist units, which is one MPos
// step for isometric cells, but only half a MPos step for classic cells. Doh! // step for isometric cells, but only half a MPos step for classic cells. Doh!
var maxHeight = map.Grid.MaximumTerrainHeight; var maxHeight = map.Grid.MaximumTerrainHeight;
var heightOffset = map.Grid.Type == MapGridType.RectangularIsometric ? maxHeight : maxHeight / 2; var heightOffset = map.Grid.Type == MapGridType.RectangularIsometric ? maxHeight : maxHeight / 2;

View File

@@ -148,7 +148,7 @@ namespace OpenRA
switch (key.ToString()) switch (key.ToString())
{ {
case "Length": return Length; case "Length": return Length;
case "Range": Game.Debug("WRange.Range is deprecated. Use WDist.Length instead"); return Length; case "Range": Game.Debug("WDist.Range is deprecated. Use WDist.Length instead"); return Length;
default: throw new LuaException("WDist does not define a member '{0}'".F(key)); default: throw new LuaException("WDist does not define a member '{0}'".F(key));
} }
} }