Skip to content

Commit bfaa264

Browse files
committed
Merge branch 'build-better' into staging
2 parents bf8820f + 6cb97a2 commit bfaa264

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

csqc/input.qc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ void FO_Menu_Game(float);
44
// TRUE --> capture input
55
// FALSE --> pass input on
66
float(float evtype, float scanx, float chary, float devid) CSQC_InputEvent = {
7+
switch (evtype)
8+
{
9+
case IE_MOUSEDELTA:
10+
if (previewing_sentry) {
11+
sentry_preview.angles_y = anglemod(input_angles_y + (sentry_preview_offset + 180));
12+
}
13+
default:
14+
}
15+
716
if (fo_hud_editor || fo_hud_menu_active) {
817
sui_input_event(evtype, scanx, chary, devid);
918
float menu_mouse = (fo_hud_menu_active && (CurrentMenu.flags & FO_MENU_FLAG_USE_MOUSE));
@@ -117,11 +126,6 @@ float(float evtype, float scanx, float chary, float devid) CSQC_InputEvent = {
117126
return TRUE;
118127
}
119128
break;
120-
case IE_MOUSEDELTA:
121-
if (previewing_sentry) {
122-
sentry_preview.angles_y = anglemod(input_angles_y + (sentry_preview_offset + 180));
123-
}
124-
default:
125129
}
126130
}
127131

0 commit comments

Comments
 (0)