Skip to content

Commit b9f4493

Browse files
MetadoriusStarkku
authored andcommitted
Clarify reason in comments
1 parent c66a8cc commit b9f4493

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Utilities/Parser.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,10 @@ inline bool Parser<double>::TryParse(const char* pValue, OutType* outValue)
263263
errno = 0;
264264
char* end;
265265

266-
// Nov 23, 2025 - Starkku: strtod() + cast result to float produces results
267-
// more similar to game's CRT functions than using sscanf_s.
266+
// Nov 23, 2025 - Starkku, Kerbiter: strtod() + cast result to float produces
267+
// results more similar to game's CRT functions than using sscanf_s. For some
268+
// reason CnC-DDraw in DirectX mode causes game's CRT function usage here to change
269+
// for some players, causing stably reproducible desyncs when CMIN appears, f.ex.
268270
double value = strtod(pValue, &end);
269271

270272
if (pValue == end || errno == ERANGE)

0 commit comments

Comments
 (0)