Skip to content

Commit

Permalink
Fixed a bug that caused trails to not inherit attributes correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
klingbolt committed Sep 11, 2024
1 parent 4de28d3 commit a087e5e
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<OverlayData>
<MarkerCategory DisplayName="My Category" IconFile="texture_one.png" Texture="texture_one.png" Name="mycategory">
</MarkerCategory>

<POIs>
<POI Type="mycategory" MapID="50" />
<Trail Type="mycategory" MapID="50" />
</POIs>
</OverlayData>
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<OverlayData>
<MarkerCategory DisplayName="My Category" ID="KOjMBsKTXpY=" Name="mycategory">
</MarkerCategory>

<POIs>
<POI Type="mycategory" IconFile="texture_one.png" MapID="50"/>
<Trail Type="mycategory" MapID="50" Texture="texture_one.png"/>
</POIs>
</OverlayData>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
input_paths:
"pack": "xml"
expected_stdout: |
expected_stderr: |
expected_returncode: 0
2 changes: 1 addition & 1 deletion xml_converter/src/packaging_xml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ vector<Parseable*> parse_pois(rapidxml::xml_node<>* root_node, map<string, Categ
for (size_t category_index = 0; category_index < categories.size(); category_index++) {
for (size_t i = 0; i < categories[category_index]->icon_attributes.size(); i++) {
trail->init_xml_attribute(
categories[category_index]->icon_attributes[i],
categories[category_index]->trail_attributes[i],
&ignored_errors,
state);
}
Expand Down

0 comments on commit a087e5e

Please sign in to comment.