mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-17 11:56:46 +02:00
CGameHandler: fix player id logging
This commit is contained in:
parent
1cbe9e1b8b
commit
7ae4e70134
@ -945,8 +945,8 @@ void CGameHandler::handleConnection(std::set<PlayerColor> players, CConnection &
|
|||||||
|
|
||||||
packType = typeList.getTypeID(pack); //get the id of type
|
packType = typeList.getTypeID(pack); //get the id of type
|
||||||
|
|
||||||
logGlobal->trace("Received client message (request %d by player %d) of type with ID=%d (%s).\n",
|
logGlobal->trace("Received client message (request %d by player %d (%s)) of type with ID=%d (%s).\n",
|
||||||
requestID, player.getNum(), packType, typeid(*pack).name());
|
requestID, player, player.getStr(), packType, typeid(*pack).name());
|
||||||
}
|
}
|
||||||
|
|
||||||
//prepare struct informing that action was applied
|
//prepare struct informing that action was applied
|
||||||
@ -1963,7 +1963,7 @@ bool CGameHandler::moveHero( ObjectInstanceID hid, int3 dst, ui8 teleporting, bo
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
logGlobal->trace("Player %d wants to move hero %d from %s to %s", asker.getNum(), hid.getNum(), h->pos(), dst());
|
logGlobal->trace("Player %d (%s) wants to move hero %d from %s to %s", asker, asker.getStr(), hid.getNum(), h->pos(), dst());
|
||||||
const int3 hmpos = CGHeroInstance::convertPosition(dst, false);
|
const int3 hmpos = CGHeroInstance::convertPosition(dst, false);
|
||||||
|
|
||||||
if(!gs->map->isInTheMap(hmpos))
|
if(!gs->map->isInTheMap(hmpos))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user