Skip to content

Commit

Permalink
Update for the latest Transformice 1.810
Browse files Browse the repository at this point in the history
  • Loading branch information
friedkeenan committed Apr 13, 2024
1 parent bb94be0 commit 1401a38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/leakers/TransformiceLeaker.as
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ package leakers {
super("http://www.transformice.com/Transformice.swf", true);
}

private static function all_numbers(parameters: XMLList) : Boolean {
for each (var param: * in parameters) {
if (param.attribute("type") != "Number") {
private static function parameters_match(parameters: XMLList, ... types) : Boolean {
for (var i: int = 0; i < parameters.length(); ++i) {
if (parameters[i].attribute("type") != types[i]) {
return false;
}
}
Expand All @@ -28,7 +28,7 @@ package leakers {
continue;
}

if (!all_numbers(parameters)) {
if (!parameters_match(parameters, "Number", "Number", "int")) {
continue;
}

Expand Down

0 comments on commit 1401a38

Please sign in to comment.