diff --git a/tools/UpdatePaths/__main__.py b/tools/UpdatePaths/__main__.py index b283257c1234..a8bf8263e9b9 100644 --- a/tools/UpdatePaths/__main__.py +++ b/tools/UpdatePaths/__main__.py @@ -27,7 +27,7 @@ property = @UNSET - will apply the rule only if the property is not mapedited """ -default_map_directory = "../maps" +default_map_directory = "../../maps" replacement_re = re.compile(r'\s*(?P[^{]*)\s*(\{(?P.*)\})?') #urgent todo: replace with actual parser, this is slow as janitor in crit diff --git a/tools/mapmerge2/dmm.py b/tools/mapmerge2/dmm.py index 5702ed21edc7..bc12a39b3556 100644 --- a/tools/mapmerge2/dmm.py +++ b/tools/mapmerge2/dmm.py @@ -95,7 +95,7 @@ def _presave_checks(self): # last-second handling of bogus keys to help prevent and fix broken maps self._ensure_free_keys(0) max_key = max_key_for(self.key_length) - bad_keys = {key: 0 for key in self.dictionary.keys() if key > max_key} + bad_keys = {key: 0 for key in self.dictionary.keys() if key >= max_key} if bad_keys: print(f"Warning: fixing {len(bad_keys)} overflowing keys") for k in bad_keys: