Skip to content

Commit 3bc76ba

Browse files
committed
Fix oversight causing % format floats (not doubles) to not be parsed correctly
1 parent 80bbbbd commit 3bc76ba

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

docs/Whats-New.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,7 @@ HideShakeEffects=false ; boolean
776776
- Fixed AttachEffect with `RecreationDelay` of 0 checking `Delay` as well instead of immediately refreshing duration when possible (by Starkku)
777777
- Fixed building interceptors being able to pick targets during construction and selling (by Starkku)
778778
- Fixed the bug that the vanilla `SecondSpawnOffset` no longer takes effect (by NetsuNegi)
779+
- Fixed an issue where some percentage format floating point numbers were not being parsed correctly (by Starkku)
779780
```
780781

781782
### 0.4.0.2

src/Utilities/Parser.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,6 @@ inline bool Parser<float>::TryParse(const char* pValue, OutType* outValue)
294294
{
295295
float floatValue = static_cast<float>(buffer);
296296

297-
if (strchr(pValue, '%'))
298-
{
299-
floatValue *= 0.01f;
300-
}
301297
if (outValue)
302298
{
303299
*outValue = floatValue;

0 commit comments

Comments
 (0)