Minecraft Consoles latest changes + Better shadow for water in Extra mode

Culling for water need more work in extra graphics mode.
This commit is contained in:
GabsPuNs
2026-04-08 23:47:27 -04:00
parent 23102c65b6
commit 4dfedbffd1
12 changed files with 453 additions and 102 deletions

View File

@@ -47,7 +47,7 @@ namespace ServerRuntime
static void ResetConnectionLogEntry(ConnectionLogEntry *entry)
{
if (entry == NULL)
if (entry == nullptr)
{
return;
}
@@ -58,7 +58,7 @@ namespace ServerRuntime
static std::string NormalizeRemoteIp(const char *ip)
{
if (ip == NULL || ip[0] == 0)
if (ip == nullptr || ip[0] == 0)
{
return std::string("unknown");
}
@@ -80,7 +80,7 @@ namespace ServerRuntime
// Default to the main app channel when the caller does not provide a source tag.
static const char *NormalizeClientLogSource(const char *source)
{
if (source == NULL || source[0] == 0)
if (source == nullptr || source[0] == 0)
{
return "app";
}
@@ -101,7 +101,7 @@ namespace ServerRuntime
// Split one debug payload into individual lines so each line becomes a prompt-safe server log entry.
static void ForwardClientDebugMessage(const char *source, const char *message)
{
if (message == NULL || message[0] == 0)
if (message == nullptr || message[0] == 0)
{
return;
}
@@ -131,7 +131,7 @@ namespace ServerRuntime
// Share the same formatting path for app, user, and legacy debug-spew forwards.
static void ForwardFormattedClientDebugLogV(const char *source, const char *format, va_list args)
{
if (!IsDedicatedServerLoggingEnabled() || format == NULL || format[0] == 0)
if (!IsDedicatedServerLoggingEnabled() || format == nullptr || format[0] == 0)
{
return;
}
@@ -376,7 +376,7 @@ namespace ServerRuntime
*/
bool TryGetConnectionRemoteIp(unsigned char smallId, std::string *outIp)
{
if (!IsDedicatedServerLoggingEnabled() || outIp == NULL)
if (!IsDedicatedServerLoggingEnabled() || outIp == nullptr)
{
return false;
}