From c6e9b13384aee9da06be0ef866d0ba3c4779c118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Fri, 16 Oct 2026 18:33:19 +0300 Subject: [PATCH] Fix world fog skipped when SetupWorldFog returns nothing --- Game.Client/ViewRender.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Game.Client/ViewRender.cs b/Game.Client/ViewRender.cs index d4b1308b..ac91cf65 100644 --- a/Game.Client/ViewRender.cs +++ b/Game.Client/ViewRender.cs @@ -1356,7 +1356,7 @@ protected void EnableWorldFog() { C_BasePlayer? pbp = C_BasePlayer.GetLocalPlayer(); - if (gGM != null && gGM.Call((int)LUA_POOLEDSTRING.SetupWorldFog)) + if (gGM != null && gGM.CallWithArgs((int)LUA_POOLEDSTRING.SetupWorldFog) && gGM.CallFinish(0)) return; if (GetFogEnable(pbp)) {