Update tiles.lua

Check if its a depot first, since some maps uses aids for depot counts (achivments etc) and this would create the "The tile seems to be protected against unwanted intruders." message to popup.
Merge pull request #817 from WibbenZ/patch-4

Update tiles.lua
Merge pull request #41 from otland/master

fix