1
0
Fork 0

Update src/clone_area_cmd.cpp

Co-authored-by: Tyler Trahan <tyler@tylertrahan.com>
pull/12657/head
StanislavShamrai 2024-08-06 22:12:39 +03:00 committed by GitHub
parent 546422f11d
commit 95e06d6c71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}