]> git.pond.sub.org Git - empserver/commit
bomb: Eliminate bombcomm[], it's redundant
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 29 May 2016 10:14:05 +0000 (12:14 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 17:59:56 +0000 (19:59 +0200)
commit846399ab7f20bfd05aa8f248c1b245cdcfa694e1
treec822f9a67bb34e65da05bf201c84a93e872f4acc
parent4b8c429d00669ee193ecc4f441c047e20fe607b2
bomb: Eliminate bombcomm[], it's redundant

bombcomm[] used to contain the commodities that can be p-bombed.  In
BSD Empire 1.1, it contained I_SHELL, I_GUN, I_MILIT, I_PETROL, I_OIL,
I_RAD.  In Chainsaw, it contained either everything or everything but
I_BAR, depending on option preprocessor symbol SUPER_BARS.  When
Empire 2 replaced the compile time variable SUPER_BARS by the run time
variable opt_SUPER_BARS, bombcomm[] became a redundant indirection.
Eliminate it.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/bomb.c