From a2a16b85572b1d28b0cd4901ea7348750732a740 Mon Sep 17 00:00:00 2001 From: xolatile Date: Tue, 5 Aug 2025 10:40:01 +0200 Subject: Few more changes, please do not compile... --- src/fpsgame/ai.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fpsgame/ai.cpp') diff --git a/src/fpsgame/ai.cpp b/src/fpsgame/ai.cpp index c57b575..0886245 100644 --- a/src/fpsgame/ai.cpp +++ b/src/fpsgame/ai.cpp @@ -18,7 +18,7 @@ namespace ai float viewdist(int x) { - return x <= 100 ? clamp((SIGHTMIN+(SIGHTMAX-SIGHTMIN))/100.f*float(x), float(SIGHTMIN), float(fog)) : 10000.0f; + return x <= 100 ? clamp((SIGHTMIN+(SIGHTMAX-SIGHTMIN))/100.f*float(x), float(SIGHTMIN), 10000.0f) : 10000.0f; } float viewfieldx(int x) -- cgit v1.2.3