Standardizes constant use

This commit is contained in:
JDV 2016-07-12 12:31:04 -06:00 committed by Aestek
parent 6a0fc4c438
commit 2ba4b22e88
1 changed files with 3 additions and 3 deletions

View File

@ -91,11 +91,11 @@ NetPlaySetupFrame::NetPlaySetupFrame(wxWindow* const parent, const CGameListCtrl
netplay_section.Get("TraversalChoice", &travChoice, "direct"); netplay_section.Get("TraversalChoice", &travChoice, "direct");
if (travChoice == "traversal") if (travChoice == "traversal")
{ {
m_direct_traversal->Select(1); m_direct_traversal->Select(TRAVERSAL_CHOICE);
} }
else else
{ {
m_direct_traversal->Select(0); m_direct_traversal->Select(DIRECT_CHOICE);
} }
std::string centralPort; std::string centralPort;
@ -361,7 +361,7 @@ void NetPlaySetupFrame::DoHost()
bool trav; bool trav;
unsigned long listen_port = 0; unsigned long listen_port = 0;
if (m_direct_traversal->GetCurrentSelection() == 1) if (m_direct_traversal->GetCurrentSelection() == TRAVERSAL_CHOICE)
{ {
trav = true; trav = true;
listen_port = listen_port =