]> git.pond.sub.org Git - empserver/commit
fairland: Fix checking of distance arguments
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 10 Aug 2020 13:39:45 +0000 (15:39 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 09:41:36 +0000 (10:41 +0100)
commitdb71fa497c3e799259071e572a57081a6ff8fb8e
tree4579d8f948f274fcb594888f8f6efd1a1bffa02d
parent21c311dba2f6716c93d876f4c72019b5ca50f134
fairland: Fix checking of distance arguments

main() rejects the distance between continents when it exceeds WORLD_X
/ 2 and WORLD_Y / 2, and the distance between continents and islands
when it exceeds WORLD_Y and WORLD_Y.  Nuts.  Has always been that way.

Reject either when it exceeds the maximum distance between sectors.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/util/fairland.c