mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Add game pause
This commit is contained in:
@@ -274,6 +274,19 @@ void CCallback::save( const std::string &fname )
|
||||
cl->save(fname);
|
||||
}
|
||||
|
||||
void CCallback::gamePause(bool pause)
|
||||
{
|
||||
if(pause)
|
||||
{
|
||||
GamePause pack;
|
||||
pack.player = *player;
|
||||
sendRequest(&pack);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendQueryReply(0, QueryID::CLIENT);
|
||||
}
|
||||
}
|
||||
|
||||
void CCallback::sendMessage(const std::string &mess, const CGObjectInstance * currentObject)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user