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) {
376
376
377
377
HandleMainArgs (argc, argv);
378
378
379
+ if (g_NetworkServer.IsServerModeEnabled ()) {
380
+ SDL_ShowCursor (SDL_ENABLE);
381
+ }
382
+
379
383
g_PresetMan.LoadAllDataModules ();
380
384
381
385
if (!System::IsInExternalModuleValidationMode ()) {
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ namespace RTE {
370
370
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
371
371
372
372
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) ) {
374
374
m_TrapMousePos = trap;
375
375
SDL_SetRelativeMouseMode (static_cast <SDL_bool>(trap));
376
376
}
Original file line number Diff line number Diff line change @@ -540,6 +540,9 @@ namespace RTE {
540
540
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
541
541
542
542
void WindowMan::QueueWindowEvent (const SDL_Event &windowEvent) {
543
+ if (g_UInputMan.IsInMultiplayerMode ()) {
544
+ return ;
545
+ }
543
546
m_EventQueue.emplace_back (windowEvent);
544
547
}
545
548
You can’t perform that action at this time.
0 commit comments