]> git.pond.sub.org Git - empserver/commit - src/lib/subs/trdsub.c
Simplify tests for presence of load
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 8 Sep 2008 00:37:52 +0000 (20:37 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 9 Sep 2008 01:41:56 +0000 (21:41 -0400)
commit9189e67ad762af7004d31f7a7a05a22cd6533c1b
treebed700f77c8b959068f36aa968073e2a5a8aaada
parent3e370da58ca9b3543b55eb240ccfbe0f4f5131a8
Simplify tests for presence of load

Instead of counting the load with lnd_nland() / lnd_nxlight(), check
whether there's at least one loaded with lnd_first_on_land() /
pln_first_on_land().
src/lib/commands/load.c
src/lib/subs/trdsub.c