]> git.pond.sub.org Git - empserver/commit
Distinguish between sacking and obliterating a capital
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 11 May 2008 08:48:30 +0000 (10:48 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 11 May 2008 08:48:30 +0000 (10:48 +0200)
commit221e88f106ea28a2ed282b2edec410f5cc7460c3
treeb6268c032ea954d27e380a82876842a0950a6d8a
parentf6308422c3577d62e413834f6667be4dfc582117
Distinguish between sacking and obliterating a capital

Make caploss() transfer money, loans and market lots to the player
only if he actually took the capital, not if he obliterated it to
deity.

To make this work, caploss() needs to be called after the sector is
updated for damage and change of ownership.  Change callers
accordingly.

Closes #914049.
src/lib/commands/coll.c
src/lib/subs/caploss.c
src/lib/subs/sect.c