diff --git a/source/core/gameinput.h b/source/core/gameinput.h index 473be6581..c868aa25c 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -114,6 +114,18 @@ struct PlayerAngle rotscrnang = orotscrnang; } + void addadjustment(int value) + { + if (!cl_syncinput) + { + adjustment += BAngToBAM(value); + } + else + { + ang += buildang(value); + } + } + void addadjustment(double value) { if (!cl_syncinput) @@ -126,6 +138,30 @@ struct PlayerAngle } } + void addadjustment(lookangle value) + { + if (!cl_syncinput) + { + adjustment += value.asbam(); + } + else + { + ang += bamang(value.asbam()); + } + } + + void addadjustment(binangle value) + { + if (!cl_syncinput) + { + adjustment += value.asbam(); + } + else + { + ang += value; + } + } + void resetadjustment() { adjustment = 0;