empserver/tests/load-tend
Markus Armbruster 607f15a6f6 load unload lload lunload: Fix for areas starting with a digit
load and lload skip foreign ships unless explicitly named, and
suppress some error messages for ships not explicitly named.  Makes
sense, except the check for "explicitly named" is flawed: it checks
whether the argument starts with a digit.  Works as intended for lists
like 1/2/3.  Broken for areas that happen to start with a digit, such
as 0:9,0:5.  Visible in the load-tend test.

Screwed up when the feature was added in Empire 2.

Fix the obvious way: test for NS_LIST instead.  While there, drop the
p && *p guard, because it's always true after snxtitem().

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2021-01-05 07:25:17 +01:00
..
01-load-1 load unload lload lunload: Fix for areas starting with a digit 2021-01-05 07:25:17 +01:00
02-load-POGO tests/load-tend: New; exercises load and tend commands 2021-01-05 07:25:15 +01:00
03-tend-1 tend: Report "cannot hold any" when tending to target, too 2021-01-05 07:25:17 +01:00
04-tend-POGO tend ltend: Fix to skip dead ships and land units for deities 2021-01-05 07:25:17 +01:00
05-ltend-1 ltend: Reject zero amount more nicely 2021-01-05 07:25:17 +01:00
06-ltend-POGO tests/load-tend: New; exercises load and tend commands 2021-01-05 07:25:15 +01:00
99-POGO tend: Fix the amount tended in bulletin to recipient 2021-01-05 07:25:17 +01:00
final.xdump tend ltend: Fix to skip dead ships and land units for deities 2021-01-05 07:25:17 +01:00
journal.log load unload lload lunload: Fix for areas starting with a digit 2021-01-05 07:25:17 +01:00
server.log tests/load-tend: New; exercises load and tend commands 2021-01-05 07:25:15 +01:00
setup-POGO tests/load-tend: New; exercises load and tend commands 2021-01-05 07:25:15 +01:00