Skip to content

Commit 4f3da26

Browse files
committed
Simplify
1 parent b3b5016 commit 4f3da26

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

csqc/main.qc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,7 @@ noref float(string cmd) CSQC_ConsoleCommand = {
300300
switch (WP_PlayerClass()) {
301301
case PC_ENGINEER:
302302
if (previewing_sentry) {
303-
anglemod(sentry_preview.angles_y -= 15);
304-
anglemod(sentry_preview_offset -= 15);
303+
sentry_preview_offset = anglemod(sentry_preview_offset - 15);
305304
} else {
306305
localcmd("cmd sentry rotate 15\n");
307306
}
@@ -312,8 +311,7 @@ noref float(string cmd) CSQC_ConsoleCommand = {
312311
switch (WP_PlayerClass()) {
313312
case PC_ENGINEER:
314313
if (previewing_sentry) {
315-
anglemod(sentry_preview.angles_y += 15);
316-
anglemod(sentry_preview_offset += 15);
314+
sentry_preview_offset = anglemod(sentry_preview_offset + 15);
317315
} else {
318316
localcmd("cmd sentry rotate -15\n");
319317
}

0 commit comments

Comments
 (0)