Open the wheel's weapon bar only where the camera hooks saw free roam, a lock-on or a mount

An unclassified camera is also a paused menu, a 1.2.1 menu or any screen menu_cursor.c does not read; opening the bar
there held D-pad right and moved the right stick inside that menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-11-12 18:29:24 +03:00
1 parent 2e494481d3
commit 887ce32343
1 file changed
+4 -2
+4 -2
View File
@@ -118,8 +118,10 @@ static int weapon_wheel_allowed(uint64_t buttons, int right_down, int already_ac
int ctx = input_camera_context();
if (!already_active) {
if (ctx != INPUT_CAM_UNCLASSIFIED && ctx != INPUT_CAM_FREE_ROAM &&
ctx != INPUT_CAM_LOCK_ON && ctx != INPUT_CAM_VEHICLE)
// Opening needs a camera the mouse_direct hooks saw this moment: an unclassified one is also a paused menu,
// 1.2.1's menus or any screen menu_cursor.c does not read, where D-pad right and the right stick would move
// the menu instead.
if (ctx != INPUT_CAM_FREE_ROAM && ctx != INPUT_CAM_LOCK_ON && ctx != INPUT_CAM_VEHICLE)
return 0;
} else {
if (ctx != INPUT_CAM_UNCLASSIFIED && ctx != INPUT_CAM_MENU_WHEEL &&