Fix IDE0001
This commit is contained in:
committed by
Pavel Penev
parent
ee35cbc0d0
commit
8b4500146f
@@ -66,7 +66,7 @@ namespace OpenRA
|
||||
// Add an additional quadratic variation to height
|
||||
// Uses decimal to avoid integer overflow
|
||||
var offset = (decimal)(b - a).Length * pitch.Tan() * mul * (div - mul) / (1024 * div * div);
|
||||
var clampedOffset = (int)(offset + (decimal)ret.Z).Clamp<decimal>((decimal)int.MinValue, (decimal)int.MaxValue);
|
||||
var clampedOffset = (int)(offset + (decimal)ret.Z).Clamp((decimal)int.MinValue, (decimal)int.MaxValue);
|
||||
|
||||
return new WPos(ret.X, ret.Y, clampedOffset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user