Codechange: Use a switch with fall-through instead of a if-sequence with context data between cases.

This commit is contained in:
frosch
2019-12-18 00:48:03 +01:00
committed by Charles Pigott
parent 7f351fd7c1
commit 3d29c9483b
2 changed files with 25 additions and 25 deletions

View File

@@ -32,10 +32,6 @@ enum RailType : byte {
RAILTYPE_MAGLEV = 3, ///< Maglev
RAILTYPE_END = 64, ///< Used for iterations
INVALID_RAILTYPE = 0xFF, ///< Flag for invalid railtype
DEF_RAILTYPE_FIRST = RAILTYPE_END, ///< Default railtype: first available
DEF_RAILTYPE_LAST, ///< Default railtype: last available
DEF_RAILTYPE_MOST_USED, ///< Default railtype: most used
};
/** Allow incrementing of Track variables */