Skip to content

Commit

Permalink
Workaround for move packet bug (#3674)
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrybk authored Oct 4, 2022
1 parent aa044be commit 9ef0e0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Network/Receive.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,14 @@ sub actor_display {
warning TF("Removed actor with off map coordinates: (%d,%d)->(%d,%d), field max: (%d,%d)\n",$coordsFrom{x},$coordsFrom{y},$coordsTo{x},$coordsTo{y},$field->width(),$field->height());
return;
}

if (defined $field && !$field->isOffMap($coordsFrom{x}, $coordsFrom{y}) && $coordsTo{x} == 0 && $coordsTo{y} == 0) {
debug TF("Ignoring bugged actor moved packet to (0,0)\n");
$coordsTo{x} = $coordsFrom{x};
$coordsTo{y} = $coordsFrom{y};
return;
}

=pod
# Zealotus bug
if ($args->{type} == 1200) {
Expand Down

0 comments on commit 9ef0e0e

Please sign in to comment.