mirror of https://github.com/OpenTTD/OpenTTD
Update src/clone_area_cmd.cpp
Co-authored-by: Tyler Trahan <tyler@tylertrahan.com>pull/12657/head
parent
546422f11d
commit
95e06d6c71
|
@ -148,7 +148,7 @@ DiagDirection Rotate(DiagDirection dir, DiagDirDiff angle) {
|
|||
*/
|
||||
Axis Rotate(Axis axis, DiagDirDiff angle) {
|
||||
if (angle == DIAGDIRDIFF_90LEFT || angle == DIAGDIRDIFF_90RIGHT) {
|
||||
return (Axis)(axis ^ 1);
|
||||
return static_cast<Axis>(axis ^ 1);
|
||||
}
|
||||
return axis;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue