Skip to content

Commit a65020c

Browse files
committed
Fix for potential soft lock with the necklace
This makes sure brecconary is on the same continent as tantegel if swamp cave is inside Tantegel
1 parent 1ee56ea commit a65020c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

common/build.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/* This file is generated by git */
2-
#define BUILD "349"
2+
#define BUILD "351"

common/dwr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "build.h"
99
#include "sprites.h"
1010

11-
#define DWR_VERSION "2.0.5"
11+
#define DWR_VERSION "2.0.6"
1212

1313
#ifdef DWR_RELEASE
1414
#define VERSION DWR_VERSION

common/map.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ static int find_walkable_area(dw_map *map, int *lm_sizes, int *largest,
566566
static BOOL place_landmarks(dw_map *map)
567567
{
568568
int i, largest = 0, next = 0, lm_sizes[256],
569-
rimuldar_lm1, rimuldar_lm2;
569+
rimuldar_lm1, rimuldar_lm2, brecc_lm1, brecc_lm2;
570570
uint8_t tantegel_lm, charlock_lm;
571571
dw_map_index swamp_north, swamp_south;
572572
BOOL swamp_placed = FALSE;
@@ -627,8 +627,8 @@ static BOOL place_landmarks(dw_map *map)
627627
swamp_north = map->warps_from[WARP_SWAMP_NORTH].map;
628628
swamp_south = map->warps_from[WARP_SWAMP_SOUTH].map;
629629

630-
rimuldar_lm1 = largest;
631-
rimuldar_lm2 = next;
630+
rimuldar_lm1 = brecc_lm1 = largest;
631+
rimuldar_lm2 = brecc_lm1 = next;
632632

633633
/* check for swamp cave to be in tantegel and/or garinham */
634634
if (swamp_north == TANTEGEL || swamp_south == TANTEGEL) {
@@ -639,7 +639,8 @@ static BOOL place_landmarks(dw_map *map)
639639
swamp_placed = TRUE;
640640
}
641641
/* rimuldar needs to be on the same land mass as tantegel (for keys) */
642-
rimuldar_lm1 = rimuldar_lm2 = (int)tantegel_lm;
642+
/* brecconary on the same land mass as tantegel (for uncursing) */
643+
rimuldar_lm1 = rimuldar_lm2 = brecc_lm1 = brecc_lm2 = (int)tantegel_lm;
643644
} else {
644645
tantegel_lm = place_tantegel(map, largest, next);
645646
}
@@ -660,12 +661,11 @@ static BOOL place_landmarks(dw_map *map)
660661
}
661662
map->meta[RIMULDAR].border =
662663
place(map, WARP_RIMULDAR, TILE_TOWN, rimuldar_lm1, rimuldar_lm2);
663-
664+
map->meta[BRECCONARY].border =
665+
place(map, WARP_BRECCONARY, TILE_TOWN, brecc_lm1, brecc_lm2);
664666

665667
map->meta[KOL].border =
666668
place(map, WARP_KOL, TILE_TOWN, largest, next);
667-
map->meta[BRECCONARY].border =
668-
place(map, WARP_BRECCONARY, TILE_TOWN, largest, next);
669669
map->meta[HAUKSNESS].border =
670670
place(map, WARP_HAUKSNESS, TILE_TOWN, largest, next);
671671
map->meta[CANTLIN].border =

0 commit comments

Comments
 (0)