Skip to content

Commit

Permalink
Update src/overmap.cpp
Browse files Browse the repository at this point in the history
Co-Authored-By: NotFuji <38316883+NotFuji@users.noreply.github.com>
  • Loading branch information
ZhilkinSerg and NotFuji committed Jan 6, 2019
1 parent d7a49c2 commit f2ffa7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/overmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2361,7 +2361,7 @@ void overmap::place_building( const tripoint &p, om_direction::type dir, const c
const om_direction::type building_dir = om_direction::opposite( dir );

const int town_dist = ( trig_dist( building_pos.x, building_pos.y, town.pos.x,
town.pos.y ) * 100 ) / std::max( town.size / 2, 1 );
town.pos.y ) * 100 ) / std::max( town.size / 2, 1 );

for( size_t retries = 10; retries > 0; --retries ) {
const overmap_special_id building_tid = pick_random_building_to_place( town_dist );
Expand Down

0 comments on commit f2ffa7f

Please sign in to comment.