Codechange: make DirDiff a scoped enum

This commit is contained in:
Peter Nelson
2026-05-28 17:10:31 +01:00
committed by Peter Nelson
parent e6cf643103
commit 568c7bb259
10 changed files with 41 additions and 40 deletions
+3 -3
View File
@@ -796,9 +796,9 @@ static void ShipController(Ship *v)
const Direction new_direction = b.dir;
const DirDiff diff = DirDifference(new_direction, v->direction);
switch (diff) {
case DIRDIFF_SAME:
case DIRDIFF_45RIGHT:
case DIRDIFF_45LEFT:
case DirDiff::Same:
case DirDiff::Right45:
case DirDiff::Left45:
/* Continue at speed */
v->rotation = v->direction = new_direction;
break;