Standardizes constant use
This commit is contained in:
parent
6a0fc4c438
commit
2ba4b22e88
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue