1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Remove code related to duel mode (#312)

Remove code related to duel mode
This commit is contained in:
ArseniyShestakov
2017-07-01 16:30:13 +03:00
committed by GitHub
parent 7bc9853175
commit 2f305cc68d
13 changed files with 63 additions and 459 deletions

View File

@@ -113,7 +113,6 @@ CPlayerInterface::CPlayerInterface(PlayerColor Player)
logGlobal->traceStream() << "\tHuman player interface for player " << Player << " being constructed";
destinationTeleport = ObjectInstanceID();
destinationTeleportPos = int3(-1);
observerInDuelMode = false;
howManyPeople++;
GH.defActionsDef = 0;
LOCPLINT = this;
@@ -147,8 +146,6 @@ CPlayerInterface::~CPlayerInterface()
void CPlayerInterface::init(std::shared_ptr<CCallback> CB)
{
cb = CB;
if (observerInDuelMode)
return;
if (!towns.size() && !wanderingHeroes.size())
initializeHeroTownList();
@@ -1300,8 +1297,11 @@ void CPlayerInterface::heroBonusChanged( const CGHeroInstance *hero, const Bonus
template <typename Handler> void CPlayerInterface::serializeTempl( Handler &h, const int version )
{
h & observerInDuelMode;
if(version < 774 && !h.saving)
{
bool observerInDuelMode;
h & observerInDuelMode;
}
h & wanderingHeroes & towns & sleepingHeroes;