X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9cfaeb5460cffcb20422ee3a89d5adf8bdb630bf..901d77837b9c1a432c158f1ed5f9a90bf71b8588:/app/controllers/amf_controller.rb diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index 03b354b6a..aee31295c 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -127,14 +127,13 @@ class AmfController < ApplicationController case message when 'putway'; orn=renumberednodes.dup r=putway(renumberednodes,*args) - r[4]=renumberednodes.dup - r[4].delete_if { |k,v| orn.has_key?(k) } + r[4]=renumberednodes.reject { |k,v| orn.has_key?(k) } if r[2] != r[3] then renumberedways[r[2]] = r[3] end results[index]=AMF.putdata(index,r) when 'putrelation'; results[index]=AMF.putdata(index,putrelation(renumberednodes, renumberedways, *args)) when 'deleteway'; results[index]=AMF.putdata(index,deleteway(*args)) when 'putpoi'; r=putpoi(*args) - if r[2] != r[3] then renumberednodes[r[2]] = r[3] end + if r[2] != r[3] then renumberednodes[r[2]] = r[3] end results[index]=AMF.putdata(index,r) when 'startchangeset'; results[index]=AMF.putdata(index,startchangeset(*args)) end