Fix some typos in vector strings.
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user