Skip to content

Commit

Permalink
Fixed unconditional exit after first iteration (CleverRaven#60517)
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-Pryanik authored Aug 29, 2022
1 parent e03251a commit d0142dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4951,8 +4951,8 @@ item map::water_from( const tripoint &p )
ret.poison = rng( 1, 6 );
ret.get_comestible()->parasites = 5;
ret.get_comestible()->contamination = { { disease_bad_food, 5 } };
return ret;
}
return ret;
}
}

Expand All @@ -4962,8 +4962,8 @@ item map::water_from( const tripoint &p )
ret.set_item_temperature( std::max( weather.get_temperature( p ),
temperatures::cold ) );
ret.poison = one_in( 3 ) ? 0 : rng( 1, 3 );
return ret;
}
return ret;
}
}

Expand Down

0 comments on commit d0142dc

Please sign in to comment.