- gameinput.h: Fix some mangled formatting from merging of master into branch.

This commit is contained in:
Mitchell Richters 2021-05-12 11:44:05 +10:00
parent 33a8355d11
commit d7dbb4bb8b

View file

@ -28,7 +28,7 @@ struct PlayerHorizon
void addadjustment(double value) void addadjustment(double value)
{ {
__addadjustment(buildfhoriz(value)); __addadjustment(buildfhoriz(value));
} }
void addadjustment(fixedhoriz value) void addadjustment(fixedhoriz value)
{ {
@ -46,14 +46,14 @@ struct PlayerHorizon
} }
void settarget(fixedhoriz value, bool backup = false) void settarget(fixedhoriz value, bool backup = false)
{ {
__settarget(value, backup); __settarget(value, backup);
} }
bool targetset() bool targetset()
{ {
return target.asq16(); return target.asq16();
} }
void processhelpers(double const scaleAdjust) void processhelpers(double const scaleAdjust)
{ {
@ -69,7 +69,7 @@ struct PlayerHorizon
{ {
horiz = target; horiz = target;
target = q16horiz(0); target = q16horiz(0);
} }
} }
else if (adjustment) else if (adjustment)
{ {
@ -161,12 +161,12 @@ struct PlayerAngle
void addadjustment(double value) void addadjustment(double value)
{ {
__addadjustment(buildfang(value)); __addadjustment(buildfang(value));
} }
void addadjustment(binangle value) void addadjustment(binangle value)
{ {
__addadjustment(value); __addadjustment(value);
} }
void resetadjustment() void resetadjustment()
{ {
@ -176,17 +176,17 @@ struct PlayerAngle
void settarget(double value, bool backup = false) void settarget(double value, bool backup = false)
{ {
__settarget(buildfang(value), backup); __settarget(buildfang(value), backup);
} }
void settarget(binangle value, bool backup = false) void settarget(binangle value, bool backup = false)
{ {
__settarget(value, backup); __settarget(value, backup);
} }
bool targetset() bool targetset()
{ {
return target.asbam(); return target.asbam();
} }
void processhelpers(double const scaleAdjust) void processhelpers(double const scaleAdjust)
{ {
@ -202,7 +202,7 @@ struct PlayerAngle
{ {
ang = target; ang = target;
target = bamang(0); target = bamang(0);
} }
} }
else if (adjustment) else if (adjustment)
{ {