mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-05-22 07:45:09 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user