From 6393a6d1cabff9918b3fdac653060a938d28f037 Mon Sep 17 00:00:00 2001 From: Tiefoone <62725946+Tiefoone@users.noreply.github.com> Date: Sat, 4 Apr 2020 18:33:09 +1300 Subject: [PATCH] Floating point error correction. (#39230) --- src/creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/creature.cpp b/src/creature.cpp index 54a9d88266ee1..73a4c98cbdb39 100644 --- a/src/creature.cpp +++ b/src/creature.cpp @@ -271,7 +271,7 @@ bool Creature::sees( const tripoint &t, bool is_avatar, int range_mod ) const g->m.ambient_light_at( t ) > g->natural_light_level( t.z ) ) ) { int range = 0; if( g->m.ambient_light_at( t ) > g->natural_light_level( t.z ) ) { - range = wanted_range; + range = MAX_VIEW_DISTANCE; } else { range = range_min; }