Fix parsing of negative WRange.
This commit is contained in:
@@ -68,6 +68,10 @@ namespace OpenRA
|
||||
default: return false;
|
||||
}
|
||||
|
||||
// Propagate sign to fractional part
|
||||
if (cell < 0)
|
||||
subcell = -subcell;
|
||||
|
||||
result = new WRange(1024*cell + subcell);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user