From 2f87ace7fc380e2710518b0e25b14409f0b53de6 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Wed, 2 Apr 2025 21:16:17 +0700 Subject: [PATCH] Fix dumb bug where skip logos without advancing to next iter, causing an endless loop when sv_send_logos is disabled Fixes #1085 --- rehlds/engine/sv_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rehlds/engine/sv_main.cpp b/rehlds/engine/sv_main.cpp index 20ba978..6b70b88 100644 --- a/rehlds/engine/sv_main.cpp +++ b/rehlds/engine/sv_main.cpp @@ -5781,8 +5781,12 @@ void SV_PropagateCustomizations(void) pResource = &pCust->resource; #ifdef REHLDS_FIXES + // skip logos if sv_send_logos is 0 if ((pResource->ucFlags & RES_CUSTOM) && !sv_send_logos.value) + { + pCust = pCust->pNext; continue; + } #endif MSG_WriteByte(&host_client->netchan.message, svc_customization);