mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 12:06:41 +00:00
Codechange: make DirDiff a scoped enum
This commit is contained in:
committed by
Peter Nelson
parent
e6cf643103
commit
568c7bb259
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user