Point the WpakLine number comment at the client's strtol/strtod parsers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MagicBotandClaude Opus 5.5 committed 2026-10-26 20:31:27 -04:00
1 parent 03399bece7
commit 99e384cfe1
1 file changed
+2 -2
+2 -2
View File
@@ -20,8 +20,8 @@ import java.util.regex.Pattern;
public class WpakLine {
// The client reads numbers like C atoi/atof: the leading number counts, the rest is dropped
// (Powers.cfg has "2.9.0" for a float and "10.0" for an int)
// The client reads numbers with strtol/strtod (Core.dll String::ToInt/ToFloat): the leading
// number counts, the rest is dropped, so "2.9.0" is 2.9 and "10.0" as an int is 10
private static final Pattern intPrefix = Pattern.compile("[-+]?\\d+");
private static final Pattern floatPrefix = Pattern.compile("[-+]?(\\d+\\.?\\d*|\\.\\d+)");