Fix RCS1089
This commit is contained in:
@@ -302,9 +302,9 @@ namespace OpenRA
|
||||
|
||||
// Adjust for other rounding modes
|
||||
if (round == ISqrtRoundMode.Nearest && remainder > root)
|
||||
root += 1;
|
||||
root++;
|
||||
else if (round == ISqrtRoundMode.Ceiling && root * root < number)
|
||||
root += 1;
|
||||
root++;
|
||||
|
||||
return root;
|
||||
}
|
||||
@@ -343,9 +343,9 @@ namespace OpenRA
|
||||
|
||||
// Adjust for other rounding modes
|
||||
if (round == ISqrtRoundMode.Nearest && remainder > root)
|
||||
root += 1;
|
||||
root++;
|
||||
else if (round == ISqrtRoundMode.Ceiling && root * root < number)
|
||||
root += 1;
|
||||
root++;
|
||||
|
||||
return root;
|
||||
}
|
||||
|
||||
@@ -135,12 +135,12 @@ namespace OpenRA
|
||||
|
||||
public bool MoveNext()
|
||||
{
|
||||
u += 1;
|
||||
u++;
|
||||
|
||||
// Check for column overflow
|
||||
if (u > r.mapBottomRight.U)
|
||||
{
|
||||
v += 1;
|
||||
v++;
|
||||
u = r.mapTopLeft.U;
|
||||
|
||||
// Check for row overflow
|
||||
|
||||
@@ -611,7 +611,7 @@ namespace OpenRA
|
||||
|
||||
// Odd-height ramps get bumped up a level to the next even height layer
|
||||
if ((height & 1) == 1 && Ramp[uv] != 0)
|
||||
height += 1;
|
||||
height++;
|
||||
|
||||
var candidates = new List<PPos>();
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace OpenRA
|
||||
// Check for column overflow
|
||||
if (u > r.BottomRight.U)
|
||||
{
|
||||
v += 1;
|
||||
v++;
|
||||
u = r.TopLeft.U;
|
||||
|
||||
// Check for row overflow
|
||||
|
||||
@@ -93,12 +93,12 @@ namespace OpenRA
|
||||
|
||||
public bool MoveNext()
|
||||
{
|
||||
u += 1;
|
||||
u++;
|
||||
|
||||
// Check for column overflow
|
||||
if (u > r.BottomRight.U)
|
||||
{
|
||||
v += 1;
|
||||
v++;
|
||||
u = r.TopLeft.U;
|
||||
|
||||
// Check for row overflow
|
||||
|
||||
@@ -154,7 +154,7 @@ namespace OpenRA.Primitives
|
||||
|
||||
// Wrap negative values into [0-1)
|
||||
if (h < 0)
|
||||
h += 1;
|
||||
h++;
|
||||
|
||||
var s = delta / rgbMax;
|
||||
return (h, s, v);
|
||||
|
||||
Reference in New Issue
Block a user