diff options
| author | MrTheShy <49885496+MrTheShy@users.noreply.github.com> | 2026-03-09 05:10:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-08 23:10:00 -0500 |
| commit | 7a4f57e3e692c621c20e58bc658d321842872de5 (patch) | |
| tree | d4b5d12b934bd3639e2bcdafeacac7eb7c38d10e /Minecraft.Client/Windows64/Iggy | |
| parent | e2adaa082c219c4c5f2025ae4898d3711000cab9 (diff) | |
Reject duplicate UIDs on login and remove noisy gdraw debug log (#1013)
Players joining a server with a UID already in use are now disconnected
instead of the existing player being force-kicked. The previous behaviour
introduced in #767 allowed two clients with the same UID to coexist,
causing invisible players and undefined behaviour.
Also removes a per-frame debug printf in gdraw_SetViewSizeAndWorldScale
that was left in from earlier resolution-fix work.
Diffstat (limited to 'Minecraft.Client/Windows64/Iggy')
| -rw-r--r-- | Minecraft.Client/Windows64/Iggy/gdraw/gdraw_d3d1x_shared.inl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Minecraft.Client/Windows64/Iggy/gdraw/gdraw_d3d1x_shared.inl b/Minecraft.Client/Windows64/Iggy/gdraw/gdraw_d3d1x_shared.inl index 0722308a..62e97e0f 100644 --- a/Minecraft.Client/Windows64/Iggy/gdraw/gdraw_d3d1x_shared.inl +++ b/Minecraft.Client/Windows64/Iggy/gdraw/gdraw_d3d1x_shared.inl @@ -998,11 +998,7 @@ static void RADLINK gdraw_SetViewSizeAndWorldScale(S32 w, S32 h, F32 scalex, F32 { static S32 s_lastW = 0, s_lastH = 0; static F32 s_lastSx = 0, s_lastSy = 0; - if (w != s_lastW || h != s_lastH || scalex != s_lastSx || scaley != s_lastSy) { - app.DebugPrintf("[GDRAW] SetViewSize: fw=%d fh=%d scale=%.6f,%.6f frametex=%dx%d vx=%d vy=%d\n", - w, h, scalex, scaley, gdraw->frametex_width, gdraw->frametex_height, gdraw->vx, gdraw->vy); - s_lastW = w; s_lastH = h; s_lastSx = scalex; s_lastSy = scaley; - } + memset(gdraw->frame, 0, sizeof(gdraw->frame)); gdraw->cur = gdraw->frame; gdraw->fw = w; |
