style: remove useless parentheses

This commit is contained in:
Anna 2020-08-25 07:07:44 -04:00
parent 6f78beb69a
commit 57158a1186
1 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ namespace Globetrotter {
private static int ConvertMapCoordinateToRawPosition(float pos, float scale) {
var c = scale / 100.0f;
var scaledPos = ((((pos - 1.0f) * c / 41.0f) * 2048.0f) - 1024.0f) / c;
var scaledPos = (((pos - 1.0f) * c / 41.0f * 2048.0f) - 1024.0f) / c;
scaledPos *= 1000.0f;
return (int)scaledPos;
@ -155,7 +155,7 @@ namespace Globetrotter {
var c = scale / 100f;
val *= c;
return ((41f / c) * ((val + 1024f) / 2048f)) + 1;
return (41f / c * ((val + 1024f) / 2048f)) + 1;
}
}