Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local q = wesnoth.get_locations({
- { "filter_adjacent_location", {
- adjacent = "-" .. direction,
- x = p[1],
- y = p[2]
- } },
- -- Must exclude map borders since we want to use this information
- -- to place units.
- { "and", {
- x = ("1-%d"):format(mapw),
- y = ("1-%d"):format(maph)
- } },
- })
Advertisement
Add Comment
Please, Sign In to add comment