Fix midair collision change detection (duplicate in into $cgi)

master
Vitaliy Filippov 2014-08-13 18:24:17 +04:00
parent 41197ffa28
commit 3f3595085c
1 changed files with 2 additions and 0 deletions

View File

@ -172,11 +172,13 @@ if ($ARGS->{delta_ts})
$equal = 0 if %$cur;
# If equal to old value -> change to the new value
$ARGS->{$_->{fieldname}} = $new if $equal;
$cgi->param($_->{fieldname}, $new) if $equal;
}
elsif ($ARGS->{$_->{fieldname}} eq $_->{removed})
{
# If equal to old value -> change to the new value
$ARGS->{$_->{fieldname}} = $_->{added};
$cgi->param($_->{fieldname}, $_->{added});
}
}
}