From 7b9e7dbbcf1d779419be8f22df812ff523a25450 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Sat, 19 Jul 2025 16:44:58 -0300 Subject: fix some critical bugs Aside from obvious gameplay bugs pretty much everywhere, the game is finally in a PLAYABLE state. It should be smooth sailing to get it stable for an initial test server. --- src/sending.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sending.cc') diff --git a/src/sending.cc b/src/sending.cc index 3b22cc3..d1cca27 100644 --- a/src/sending.cc +++ b/src/sending.cc @@ -452,7 +452,7 @@ void SendFullScreen(TConnection *Connection){ int ZOffset = (PlayerZ - PointZ); for(int PointX = MinX; PointX <= MaxX; PointX += 1) for(int PointY = MinY; PointY <= MaxY; PointY += 1){ - SendMapPoint(Connection, PointX + ZOffset, PointY + ZOffset, PlayerZ); + SendMapPoint(Connection, PointX + ZOffset, PointY + ZOffset, PointZ); } } SkipFlush(Connection); @@ -506,7 +506,7 @@ void SendRow(TConnection *Connection, int Direction){ int ZOffset = (PlayerZ - PointZ); for(int PointX = MinX; PointX <= MaxX; PointX += 1) for(int PointY = MinY; PointY <= MaxY; PointY += 1){ - SendMapPoint(Connection, PointX + ZOffset, PointY + ZOffset, PlayerZ); + SendMapPoint(Connection, PointX + ZOffset, PointY + ZOffset, PointZ); } } SkipFlush(Connection); @@ -568,7 +568,7 @@ void SendFloors(TConnection *Connection, bool Up){ int ZOffset = (PlayerZ - PointZ); for(int PointX = MinX; PointX <= MaxX; PointX += 1) for(int PointY = MinY; PointY <= MaxY; PointY += 1){ - SendMapPoint(Connection, PointX + ZOffset, PointY + ZOffset, PlayerZ); + SendMapPoint(Connection, PointX + ZOffset, PointY + ZOffset, PointZ); } } SkipFlush(Connection); -- cgit v1.2.3