]> git.pond.sub.org Git - empserver/commit
Drop checks whether we can get the op-sector from mission()
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 14 Dec 2008 18:20:49 +0000 (13:20 -0500)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 25 Dec 2008 10:47:32 +0000 (11:47 +0100)
commit820faedb99af720b25a6f35cb66f7f4cec0f5e0c
treeedaadbd2797617f1fdfb33603743b9cf22db926c
parent77e3a8fe310154c16cac6bbef58c17537ec99d56
Drop checks whether we can get the op-sector from mission()

getsect() can fail here only when the coordinates are invalid.  The
first check uses coordinates from a successful sarg_xy(), so they
can't be invalid.  The second check uses coordinates of an object to
be put on the mission.  If these are invalid, game state is corrupt,
and failing the mission command doesn't improve the situation a bit.
src/lib/commands/miss.c