Codechange: Rename SIGTYPE_NORMAL to SIGTYPE_BLOCK (#11788)
This commit is contained in:
@@ -469,7 +469,7 @@ static bool IsValidSignalType(int signal_type)
|
||||
}
|
||||
::SignalType sig_type = (::SignalType)(signal >= SIGNALTYPE_TWOWAY ? signal ^ SIGNALTYPE_TWOWAY : signal);
|
||||
|
||||
return ScriptObject::Command<CMD_BUILD_SIGNALS>::Do(tile, track, sig_type, ::SIG_ELECTRIC, false, false, false, ::SIGTYPE_NORMAL, ::SIGTYPE_NORMAL, signal_cycles, 0);
|
||||
return ScriptObject::Command<CMD_BUILD_SIGNALS>::Do(tile, track, sig_type, ::SIG_ELECTRIC, false, false, false, ::SIGTYPE_BLOCK, ::SIGTYPE_BLOCK, signal_cycles, 0);
|
||||
}
|
||||
|
||||
/* static */ bool ScriptRail::RemoveSignal(TileIndex tile, TileIndex front)
|
||||
|
@@ -64,7 +64,7 @@ public:
|
||||
*/
|
||||
enum SignalType {
|
||||
/* Note: these values represent part of the in-game SignalType enum */
|
||||
SIGNALTYPE_NORMAL = ::SIGTYPE_NORMAL, ///< Normal signal.
|
||||
SIGNALTYPE_NORMAL = ::SIGTYPE_BLOCK, ///< Block signal.
|
||||
SIGNALTYPE_ENTRY = ::SIGTYPE_ENTRY, ///< Entry presignal.
|
||||
SIGNALTYPE_EXIT = ::SIGTYPE_EXIT, ///< Exit signal.
|
||||
SIGNALTYPE_COMBO = ::SIGTYPE_COMBO, ///< Combo signal.
|
||||
|
Reference in New Issue
Block a user