mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-24 10:15:10 +00:00
applied changes requested by tropicaaal
"i would prefer that these be cast to sized integer types int8_t for portability reasons." "The light layer changes are ultimately a hack over the broken renderer implementation and probably out of scope for this PR. There's an in-progress fix for the root cause of this, so this should be removed." "std::numeric_limits<int16_t>::max()"
This commit is contained in:
@@ -17,9 +17,9 @@ void SetEntityMotionPacket::_init(int id, double xd, double yd, double zd)
|
||||
if (xd > m) xd = m;
|
||||
if (yd > m) yd = m;
|
||||
if (zd > m) zd = m;
|
||||
xa = (int) (xd * 8000.0);
|
||||
ya = (int) (yd * 8000.0);
|
||||
za = (int) (zd * 8000.0);
|
||||
xa = (int16_t) (xd * 8000.0);
|
||||
ya = (int16_t) (yd * 8000.0);
|
||||
za = (int16_t) (zd * 8000.0);
|
||||
|
||||
useBytes = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user