empserver/tests/fire
Markus Armbruster cf4e9bc89d contact: Initialize contact state properly
A country must always be in contact of itself when option HIDDEN is
enabled.  The code ensures this by establishing contact whenever a
player logs in, in init_nats().  This is not the proper place.  Game
state should be initialized in empfile's oninit() callback, in this
case nat_oninit().  Do that, and drop the putcontact() from
init_nats().

Note that option LOSE_CONTACT only affects contact to other countries:
agecontact() doesn't age the country's contact to itself.

Use the opportunity to initialize contact so that getcontact() works
even when HIDDEN is disabled.  Just cleanup, it isn't actually called
then.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-06 20:09:20 +02:00
..
01-sector-1 tests/fire: Cover firing at unused / sunk ships 2015-03-02 08:20:52 +01:00
02-POGO tests/fire: Drop reset of #1's BTUs between sub-tests 2014-01-19 10:16:59 +01:00
03-ship-1 tests/fire: Cover firing at unused / sunk ships 2015-03-02 08:20:52 +01:00
04-POGO tests/fire: Drop reset of #1's BTUs between sub-tests 2014-01-19 10:16:59 +01:00
05-land-1 tests/fire: Cover firing at unused / sunk ships 2015-03-02 08:20:52 +01:00
99-POGO tests/fire: Cover mission clearing 2015-03-02 08:20:51 +01:00
final.xdump contact: Initialize contact state properly 2017-08-06 20:09:20 +02:00
journal.log sect: Keep work percentage without civilians at 100% 2017-08-06 19:59:57 +02:00
server.log tests: Enable running_test_suite by default 2014-01-19 10:09:17 +01:00
setup-POGO tests/fire: Cover mission clearing 2015-03-02 08:20:51 +01:00