1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

basic multiplayer support

This commit is contained in:
Laserlicht
2025-10-25 17:55:25 +02:00
parent c6730a2dcc
commit 134017a7cd
5 changed files with 12 additions and 8 deletions

View File

@@ -1483,7 +1483,7 @@ void CPlayerInterface::playerBlocked(int reason, bool start)
{
if(reason == PlayerBlocked::EReason::UPCOMING_BATTLE)
{
if(GAME->server().howManyPlayerInterfaces() > 1 && GAME->interface() != this && GAME->interface()->makingTurn == false)
if(GAME->server().howManyPlayerInterfaces() > 1 && GAME->interface() != this && GAME->interface()->makingTurn == false && !GAME->map().getMap()->battleOnly)
{
//one of our players who isn't last in order got attacked not by our another player (happens for example in hotseat mode)
GAME->setInterfaceInstance(this);