mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Refactored variable declared in NetPlayServer.cpp OnConnect() from npver to netplay_version
This commit is contained in:
@ -393,10 +393,10 @@ ConnectionError NetPlayServer::OnConnect(ENetPeer* socket, sf::Packet& rpac)
|
||||
}
|
||||
socket->data = new PlayerId(pid);
|
||||
|
||||
std::string npver;
|
||||
rpac >> npver;
|
||||
std::string netplay_version;
|
||||
rpac >> netplay_version;
|
||||
// Dolphin netplay version
|
||||
if (npver != Common::GetScmRevGitStr())
|
||||
if (netplay_version != Common::GetScmRevGitStr())
|
||||
return ConnectionError::VersionMismatch;
|
||||
|
||||
// game is currently running or game start is pending
|
||||
|
Reference in New Issue
Block a user