mirror of https://github.com/minetest/minetest.git
Update clientpackethandler.cpp
This commit is contained in:
parent
a354c558d4
commit
975f3ac674
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue