1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-23 13:12:40 +01:00

Codechange: replace INVALID_X with XID::Invalid() for PoolIDs

This commit is contained in:
Rubidium
2025-02-16 19:29:53 +01:00
committed by rubidium42
parent d13b0e0813
commit fd4adc55e3
157 changed files with 744 additions and 772 deletions

View File

@@ -40,7 +40,7 @@ void IConsoleInit()
{
_iconsole_output_file = std::nullopt;
_redirect_console_to_client = INVALID_CLIENT_ID;
_redirect_console_to_admin = INVALID_ADMIN_ID;
_redirect_console_to_admin = AdminID::Invalid();
IConsoleGUIInit();
@@ -96,7 +96,7 @@ void IConsolePrint(TextColour colour_code, const std::string &string)
return;
}
if (_redirect_console_to_admin != INVALID_ADMIN_ID) {
if (_redirect_console_to_admin != AdminID::Invalid()) {
NetworkServerSendAdminRcon(_redirect_console_to_admin, colour_code, string);
return;
}