Permalink
Browse files

Strip spaces from pasted IP addresses. Helps #9795. Fix accidental typo

  • Loading branch information...
hrydgard committed Aug 8, 2017
1 parent edf0606 commit 8ba5d7ec1e823546d284e262ed8f8c0f673b07db
Showing with 2 additions and 2 deletions.
  1. +1 −1 UI/GameSettingsScreen.cpp
  2. +1 −1 UI/NativeApp.cpp
@@ -1117,7 +1117,7 @@ UI::EventReturn GameSettingsScreen::OnChangeproAdhocServerAddress(UI::EventParam
memset(name, 0, sizeof(name));
if (System_InputBoxGetString("Enter an IP address", g_Config.proAdhocServer.c_str(), name, name_len)) {
g_Config.proAdhocServer = name;
g_Config.proAdhocServer = StripSpaces(name);
}
}
else
View
@@ -252,7 +252,7 @@ int NativeMix(short *audio, int num_samples) {
num_samples = __AudioMix(audio, num_samples, sample_rate > 0 ? sample_rate : 44100);
#ifdef _WIN32
winAudioBackend->Update*();
winAudioBackend->Update();
#endif
return num_samples;

0 comments on commit 8ba5d7e

Please sign in to comment.