]> git.pond.sub.org Git - empserver/commit
(diridx): New. Use instead of chkdir() where direction characters
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 25 Sep 2005 09:49:36 +0000 (09:49 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 25 Sep 2005 09:49:36 +0000 (09:49 +0000)
commitdfa56cb0ef682afa0b397308de95e03f1fa3a3a4
tree467e86baf269a4f6bdbafa7868335b11f023426a
parenta88f12017e8c070d90f7f8403305567352b9d38d
(diridx): New.  Use instead of chkdir() where direction characters
must be valid.  Oopses on bad direction characters.
(pathtoxy, ac_encounter): Bad direction characters used to lead to bad
array subscript and potential disaster.
(pathrange, path): Stop on DIR_STOP as well as on bad direction
characters.  This is just for consistency with other code; DIR_STOP
should occur only last in a path here.
(sail_nav_fleet, nav_ship): No change except for the oops.
include/path.h
src/lib/commands/path.c
src/lib/subs/aircombat.c
src/lib/subs/paths.c
src/lib/update/nav_ship.c
src/lib/update/sail.c