Skip to content

Commit

Permalink
Minor change to mapping
Browse files Browse the repository at this point in the history
Should make locations in vanilla map less even likely to be in
abnormal locations.
  • Loading branch information
mcgrew committed Feb 28, 2021
1 parent bf3c23e commit 545009a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/build.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/* This file is generated by git */
#define BUILD "505"
#define BUILD "506"
2 changes: 1 addition & 1 deletion common/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ static void map_find_land(dw_map *map, int one, int two, uint8_t *x, uint8_t *y,
int spot_index, loop = 0;

for (;;) {
if (!ignore_vanilla && !RANDOM_MAP(map) && loop < 50) {
if (!ignore_vanilla && !RANDOM_MAP(map) && loop < 200) {
spot_index = mt_rand(0, VAN_SPOT_COUNT-1);
*x = vanilla_spots[spot_index][0];
*y = vanilla_spots[spot_index][1];
Expand Down

0 comments on commit 545009a

Please sign in to comment.