Skip to content

Commit 775cd61

Browse files
committed
Fix hot joystick connection
1 parent 4d6c74d commit 775cd61

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Source/controls/local_coop/local_coop.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,9 +1756,7 @@ size_t GetLocalCoopTotalPlayerCount()
17561756

17571757
bool ShouldHideMainPanelForLocalCoop()
17581758
{
1759-
if (!IsLocalCoopEnabled())
1760-
return false;
1761-
return g_LocalCoop.anyCoopPlayerInitializedCache;
1759+
return IsLocalCoopEnabled();
17621760
}
17631761

17641762
bool IsLocalCoopTargetObject(const Object *object)

Source/controls/local_coop/local_coop.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ bool IsAnyLocalCoopPlayerInitialized();
296296
/**
297297
* @brief Check if the main panel should be hidden for local co-op.
298298
*
299-
* Returns true when local co-op is enabled and at least one co-op player
300-
* has spawned/initialized. Use this instead of directly checking g_LocalCoop state.
299+
* Returns true whenever local co-op is enabled (same policy as DrawView's
300+
* main panel UI), including character select before co-op players initialize.
301301
*
302302
* @return true if main panel should be hidden, false otherwise
303303
*/

0 commit comments

Comments
 (0)