Subject: | support for 2.0.0 in "queryserver" |
This patch fixes module to work with 2.0.0 server.
10c10
< our $VERSION = '1.9.2';
---
> our $VERSION = '2.0.0';
161c161
< if ($version != '1910') {
---
> if ($version != '0026') {
170c170
< unless (read(S, $buffer, 40) == 40) {
---
> unless (read(S, $buffer, 46) == 46) {
176,177c176,177
< $rogueSize,$redSize,$greenSize,$blueSize,$purpleSize,
< $rogueMax,$redMax,$greenMax,$blueMax,$purpleMax,
---
> $rogueSize,$redSize,$greenSize,$blueSize,$purpleSize,$observerSize,
> $rogueMax,$redMax,$greenMax,$blueMax,$purpleMax,$observerMax,
179,180c179,181
< $maxPlayerScore,$maxTeamScore,$maxTime) = unpack("n20", $buffer);
<
---
> $maxPlayerScore,$maxTeamScore,$maxTime,
> $timeElapsed) = unpack("n23", $buffer);
>
210a212
>