]> git.pond.sub.org Git - empserver/commit
(nxtitem): Skipped unowned sectors (could not occur), ships, planes,
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 29 May 2005 13:15:56 +0000 (13:15 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 29 May 2005 13:15:56 +0000 (13:15 +0000)
commitb111abc2c5a99f30ba39a58b29112e70e980d8f0
treee52fe0f933e66201237b41f0dcf5c733101ad235
parent15448392f333d098377973f67ef2bff6569f6669
(nxtitem): Skipped unowned sectors (could not occur), ships, planes,
land units and nukes for selection type NS_LIST.  Thus, unowned items
explicitly selected by item number are skipped, while the same items
selected implicitely by group, area or whatever are not.  This makes
no sense.  Some callers break the nstr_item abstraction to prevent the
skipping, so they get all items regardless of how they were selected.
All other callers filter out unowned items.  This skipping misfeature
dates back to the very oldest known versions of Empire.  Remove it.
Also remove skipping prevention hacks from callers.

(tend_nxtitem): Now identical to nxtitem(), except it lacks some extra
normalization of item coordinates, which should have no effect.
Replace by nxtitem().
src/lib/commands/fuel.c
src/lib/commands/load.c
src/lib/commands/lten.c
src/lib/commands/pboa.c
src/lib/commands/tend.c
src/lib/commands/upgr.c
src/lib/subs/nxtitem.c