From 6762e292d02e37a69a807e01493d4e14319cca33 Mon Sep 17 00:00:00 2001 From: xolatile Date: Tue, 5 Aug 2025 01:05:35 +0200 Subject: Do not compile, deleting stuff... --- src/fpsgame/ai.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/fpsgame/ai.cpp') diff --git a/src/fpsgame/ai.cpp b/src/fpsgame/ai.cpp index 60b33ca..c57b575 100644 --- a/src/fpsgame/ai.cpp +++ b/src/fpsgame/ai.cpp @@ -1,7 +1,5 @@ #include "game.h" -extern int fog; - namespace ai { using namespace game; @@ -20,7 +18,7 @@ namespace ai float viewdist(int x) { - return x <= 100 ? clamp((SIGHTMIN+(SIGHTMAX-SIGHTMIN))/100.f*float(x), float(SIGHTMIN), float(fog)) : float(fog); + return x <= 100 ? clamp((SIGHTMIN+(SIGHTMAX-SIGHTMIN))/100.f*float(x), float(SIGHTMIN), float(fog)) : 10000.0f; } float viewfieldx(int x) -- cgit v1.2.3