mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
battle only basic implementation
This commit is contained in:
@@ -97,6 +97,7 @@
|
||||
#include "../lib/mapObjects/MiscObjects.h"
|
||||
#include "../lib/mapObjects/ObjectTemplate.h"
|
||||
|
||||
#include "../lib/mapping/CMap.h"
|
||||
#include "../lib/mapping/CMapHeader.h"
|
||||
|
||||
#include "../lib/networkPacks/PacksForClient.h"
|
||||
@@ -658,7 +659,7 @@ void CPlayerInterface::battleStart(const BattleID & battleID, const CCreatureSet
|
||||
{
|
||||
EVENT_HANDLER_CALLED_BY_CLIENT;
|
||||
|
||||
bool useQuickCombat = settings["adventure"]["quickCombat"].Bool();
|
||||
bool useQuickCombat = settings["adventure"]["quickCombat"].Bool() || GAME->map().getMap()->battleOnly;
|
||||
bool forceQuickCombat = settings["adventure"]["forceQuickCombat"].Bool();
|
||||
|
||||
if ((replayAllowed && useQuickCombat) || forceQuickCombat)
|
||||
|
||||
Reference in New Issue
Block a user