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

+4 -4
View File
@@ -8,7 +8,7 @@
#include "../Minecraft.World/Facing.h"
#include "../Minecraft.World/Level.h"
#include "../Minecraft.World/JavaMath.h"
#ifdef _WINDOWS64
#if defined(_WINDOWS64) || defined(__linux__)
#include "DynamicLighting.h"
#endif
@@ -53,7 +53,7 @@ void BarrierParticle::render(Tesselator* t, float a, float xa, float ya, float z
float u1 = tex->getU1();
float v0 = tex->getV0();
float v1 = tex->getV1();
float half = size;
float px = static_cast<float>(xo + (this->x - xo) * a - xOff);
@@ -63,7 +63,7 @@ void BarrierParticle::render(Tesselator* t, float a, float xa, float ya, float z
float br = SharedConstants::TEXTURE_LIGHTING ? 1.0f : getBrightness(a);
t->color(br * rCol, br * gCol, br * bCol, alpha);
int lightColor = getLightColor(a);
#ifdef _WINDOWS64
#if defined(_WINDOWS64) || defined(__linux__)
lightColor = DynamicLighting::getLightmapWithDynamicLight(Mth::floor(xo + (x - xo) * a), Mth::floor(yo + (y - yo) * a), Mth::floor(zo + (z - zo) * a), lightColor);
#endif
t->tex2(lightColor);
@@ -83,4 +83,4 @@ void BarrierParticle::tick()
remove();
xd = yd = zd = 0;
}
}