Update clientpackethandler.cpp

This commit is contained in:
Ian Giestas Pauli 2017-02-01 14:11:43 -02:00 committed by GitHub
parent a354c558d4
commit 975f3ac674
1 changed files with 9 additions and 9 deletions

View File

@ -812,9 +812,9 @@ void Client::handleCommand_StopSound(NetworkPacket* pkt)
*pkt >> server_id;
UNORDERED_MAP<s32, int>::iterator i = m_sounds_server_to_client.find(server_id);
if (i != m_sounds_server_to_client.end()) {
int client_id = i->second;
UNORDERED_MAP<s32, int>::iterator it = m_sounds_server_to_client.find(server_id);
if (it != m_sounds_server_to_client.end()) {
int client_id = it->second;
m_sound->stopSound(client_id);
}
}
@ -827,9 +827,9 @@ void Client::handleCommand_PauseSound(NetworkPacket* pkt)
*pkt >> server_id;
UNORDERED_MAP<s32, int>::iterator i = m_sounds_server_to_client.find(server_id);
if (i != m_sounds_server_to_client.end()) {
int client_id = i->second;
UNORDERED_MAP<s32, int>::iterator it = m_sounds_server_to_client.find(server_id);
if (it != m_sounds_server_to_client.end()) {
int client_id = it->second;
m_sound->pauseSound(client_id);
}
}
@ -840,9 +840,9 @@ void Client::handleCommand_ResumeSound(NetworkPacket* pkt)
*pkt >> server_id;
UNORDERED_MAP<s32, int>::iterator i = m_sounds_server_to_client.find(server_id);
if (i != m_sounds_server_to_client.end()) {
int client_id = i->second;
UNORDERED_MAP<s32, int>::iterator it = m_sounds_server_to_client.find(server_id);
if (it != m_sounds_server_to_client.end()) {
int client_id = it->second;
m_sound->resumeSound(client_id);
}
}