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
@@ -13,7 +13,7 @@
#include "../Minecraft.World/StringHelpers.h"
#include "../Minecraft.World/net.minecraft.world.level.dimension.h"
#include "../Minecraft.World/InputOutputStream.h"
#ifdef _WINDOWS64
#if defined(_WINDOWS64) || defined(__linux__)
#include "DynamicLighting.h"
#endif
@@ -159,7 +159,7 @@ void ParticleEngine::render(shared_ptr<Entity> player, float a, int list)
if (SharedConstants::TEXTURE_LIGHTING) // 4J - change brought forward from 1.8.2
{
int lightColor = p->getLightColor(a);
#ifdef _WINDOWS64
#if defined(_WINDOWS64) || defined(__linux__)
lightColor = DynamicLighting::getLightmapWithDynamicLight(Mth::floor(p->xOld + (p->x - p->xOld) * a), Mth::floor(p->yOld + (p->y - p->yOld) * a), Mth::floor(p->zOld + (p->z - p->zOld) * a), lightColor);
#endif
t->tex2(lightColor);
@@ -205,7 +205,7 @@ void ParticleEngine::renderLit(shared_ptr<Entity> player, float a, int list)
if (SharedConstants::TEXTURE_LIGHTING) // 4J - change brought forward from 1.8.2
{
int lightColor = p->getLightColor(a);
#ifdef _WINDOWS64
#if defined(_WINDOWS64) || defined(__linux__)
lightColor = DynamicLighting::getLightmapWithDynamicLight(Mth::floor(p->xOld + (p->x - p->xOld) * a), Mth::floor(p->yOld + (p->y - p->yOld) * a), Mth::floor(p->zOld + (p->z - p->zOld) * a), lightColor);
#endif
t->tex2(lightColor);