mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Extracted message-related functionality of CGameHandler to separate file
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
|
||||
#include "CGameHandler.h"
|
||||
#include "HeroPoolProcessor.h"
|
||||
#include "PlayerMessageProcessor.h"
|
||||
|
||||
#include "../lib/IGameCallback.h"
|
||||
#include "../lib/mapObjects/CGTownInstance.h"
|
||||
@ -352,6 +353,6 @@ void ApplyGhNetPackVisitor::visitPlayerMessage(PlayerMessage & pack)
|
||||
if(!pack.player.isSpectator()) // TODO: clearly not a great way to verify permissions
|
||||
gh.throwOnWrongPlayer(&pack, pack.player);
|
||||
|
||||
gh.playerMessage(pack.player, pack.text, pack.currObj);
|
||||
gh.playerMessages->playerMessage(pack.player, pack.text, pack.currObj);
|
||||
result = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user