mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Separated game and battle callback (server & client only)
This commit is contained in:
@@ -136,9 +136,9 @@ const Services * CGameHandler::services() const
|
||||
return VLC;
|
||||
}
|
||||
|
||||
const CGameHandler::BattleCb * CGameHandler::battle() const
|
||||
const CGameHandler::BattleCb * CGameHandler::battle(const BattleID & battleID) const
|
||||
{
|
||||
return this;
|
||||
return gs->getBattle(battleID);
|
||||
}
|
||||
|
||||
const CGameHandler::GameCb * CGameHandler::game() const
|
||||
|
||||
Reference in New Issue
Block a user