linux (compat): Add linux to most Win64 guards

This commit is contained in:
Anaël committed 2026-11-29 13:33:39 +01:00
1 parent 8cf5675892
commit 9626065598
180 files changed
+941 -935

No files matched your search

+3 -3
View File
@@ -22,7 +22,7 @@
#include "../Minecraft.World/net.minecraft.world.level.h"
#include "../Minecraft.World/net.minecraft.world.h"
#ifdef _WINDOWS64
#if defined(_WINDOWS64) || defined(__linux__)
#include "DynamicLighting.h"
#endif
@@ -476,7 +476,7 @@ void ItemInHandRenderer::render(float a)
{
br = 1;
int col = minecraft->level->getLightColor(Mth::floor(player->x), Mth::floor(player->y), Mth::floor(player->z), 0);
#ifdef _WINDOWS64
#if defined(_WINDOWS64) || defined(__linux__)
col = DynamicLighting::getLightmapWithDynamicLight(Mth::floor(player->x), Mth::floor(player->y), Mth::floor(player->z), col);
#endif
int u = col % 65536;
@@ -619,7 +619,7 @@ void ItemInHandRenderer::render(float a)
glPushMatrix();
float d = 0.8f;
#if defined __ORBIS__ || defined __PS3__ || defined _WINDOWS64
#if defined __ORBIS__ || defined __PS3__ || (defined(_WINDOWS64) || defined(__linux__))
static const float swingPowFactor = 1.0f;
#else
static const float swingPowFactor = 4.0f; // 4J added, to slow the swing down when nearest the player for avoiding luminance flash issues