Set hostname via 'hostname' ConVar instead

This commit is contained in:
Kawe Mazidjatari 2022-05-29 02:32:00 +02:00
parent 87157d3202
commit 4a512522ab

View File

@ -751,7 +751,7 @@ eLaunchMode CUIBaseSurface::BuildParameter(string& svParameters)
// MAIN ###############################################################
if (!String::IsNullOrEmpty(this->m_HostNameTextBox->Text()))
{
svParameters.append("+sv_pylonHostName \"" + this->m_HostNameTextBox->Text() + "\" ");
svParameters.append("+hostname \"" + this->m_HostNameTextBox->Text() + "\" ");
switch (static_cast<eVisibility>(this->m_VisibilityCombo->SelectedIndex()))
{
@ -845,7 +845,7 @@ eLaunchMode CUIBaseSurface::BuildParameter(string& svParameters)
// MAIN ###############################################################
if (!String::IsNullOrEmpty(this->m_HostNameTextBox->Text()))
{
svParameters.append("+sv_pylonHostName \"" + this->m_HostNameTextBox->Text() + "\" ");
svParameters.append("+hostname \"" + this->m_HostNameTextBox->Text() + "\" ");
switch (static_cast<eVisibility>(this->m_VisibilityCombo->SelectedIndex()))
{