shadowm

Untitled

Oct 23rd, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. local q = wesnoth.get_locations({
  2. { "filter_adjacent_location", {
  3. adjacent = "-" .. direction,
  4. x = p[1],
  5. y = p[2]
  6. } },
  7. -- Must exclude map borders since we want to use this information
  8. -- to place units.
  9. { "and", {
  10. x = ("1-%d"):format(mapw),
  11. y = ("1-%d"):format(maph)
  12. } },
  13. })
Advertisement
Add Comment
Please, Sign In to add comment