From 707191c2e4337dbe3cf18565126ca23a619746e1 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 375718e0c379a..baec8a2e65ccb 100644 --- a/src/creature.cpp +++ b/src/creature.cpp @@ -266,7 +266,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; }