Skip to content

Commit

Permalink
Floating point error correction. (#39230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiefoone authored Apr 4, 2020
1 parent 8a82a76 commit 6393a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6393a6d

Please sign in to comment.