This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -376,6 +376,10 @@ int main(int argc, char **argv) {
376376
377377 HandleMainArgs (argc, argv);
378378
379+ if (g_NetworkServer.IsServerModeEnabled ()) {
380+ SDL_ShowCursor (SDL_ENABLE);
381+ }
382+
379383 g_PresetMan.LoadAllDataModules ();
380384
381385 if (!System::IsInExternalModuleValidationMode ()) {
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ namespace RTE {
370370// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
371371
372372 void UInputMan::TrapMousePos (bool trap, int whichPlayer) {
373- if (whichPlayer == Players::NoPlayer || m_ControlScheme.at (whichPlayer).GetDevice () == InputDevice::DEVICE_MOUSE_KEYB) {
373+ if (! IsInMultiplayerMode () && ( whichPlayer == Players::NoPlayer || m_ControlScheme.at (whichPlayer).GetDevice () == InputDevice::DEVICE_MOUSE_KEYB) ) {
374374 m_TrapMousePos = trap;
375375 SDL_SetRelativeMouseMode (static_cast <SDL_bool>(trap));
376376 }
Original file line number Diff line number Diff line change @@ -540,6 +540,9 @@ namespace RTE {
540540// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
541541
542542 void WindowMan::QueueWindowEvent (const SDL_Event &windowEvent) {
543+ if (g_UInputMan.IsInMultiplayerMode ()) {
544+ return ;
545+ }
543546 m_EventQueue.emplace_back (windowEvent);
544547 }
545548
You can’t perform that action at this time.
0 commit comments