From 7e56637ed07d9f32b4bd9049009cf7e1e4cff884 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Tue, 3 Mar 2015 16:23:47 +0100 Subject: Send Breath packet on event, don't check it at each AsyncRunStep --- src/network/packethandlers/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network') diff --git a/src/network/packethandlers/server.cpp b/src/network/packethandlers/server.cpp index d9ba8c314..2deede0ca 100644 --- a/src/network/packethandlers/server.cpp +++ b/src/network/packethandlers/server.cpp @@ -922,7 +922,7 @@ void Server::handleCommand_Breath(NetworkPacket* pkt) } playersao->setBreath(breath); - m_script->player_event(playersao,"breath_changed"); + SendPlayerBreath(pkt->getPeerId()); } void Server::handleCommand_Password(NetworkPacket* pkt) -- cgit v1.2.3