diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-11 12:03:39 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-11 12:03:39 -0400 |
| commit | 4e56e7681c0769dd247c0512a682a067426436bc (patch) | |
| tree | d10ed9dbc920199df2cdf33b65df48328079baf0 /tools | |
| parent | 839cf72809a5d7aa65002c1b93d78c588def1210 (diff) | |
| download | lingo2-archipelago-4e56e7681c0769dd247c0512a682a067426436bc.tar.gz lingo2-archipelago-4e56e7681c0769dd247c0512a682a067426436bc.tar.bz2 lingo2-archipelago-4e56e7681c0769dd247c0512a682a067426436bc.zip | |
Add gravity to paintings/ports
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/datapacker/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
| diff --git a/tools/datapacker/main.cpp b/tools/datapacker/main.cpp index 7e7f7f7..d3908b4 100644 --- a/tools/datapacker/main.cpp +++ b/tools/datapacker/main.cpp | |||
| @@ -169,8 +169,8 @@ class DataPacker { | |||
| 169 | painting.set_display_name(h_painting.display_name()); | 169 | painting.set_display_name(h_painting.display_name()); |
| 170 | painting.set_orientation(h_painting.orientation()); | 170 | painting.set_orientation(h_painting.orientation()); |
| 171 | 171 | ||
| 172 | if (h_painting.has_flipped()) { | 172 | if (h_painting.has_gravity()) { |
| 173 | painting.set_flipped(h_painting.flipped()); | 173 | painting.set_gravity(h_painting.gravity()); |
| 174 | } | 174 | } |
| 175 | 175 | ||
| 176 | if (h_painting.has_move()) { | 176 | if (h_painting.has_move()) { |
| @@ -208,6 +208,10 @@ class DataPacker { | |||
| 208 | port.set_path(h_port.path()); | 208 | port.set_path(h_port.path()); |
| 209 | port.set_orientation(h_port.orientation()); | 209 | port.set_orientation(h_port.orientation()); |
| 210 | 210 | ||
| 211 | if (h_port.has_gravity()) { | ||
| 212 | port.set_gravity(h_port.gravity()); | ||
| 213 | } | ||
| 214 | |||
| 211 | if (h_port.has_required_door()) { | 215 | if (h_port.has_required_door()) { |
| 212 | std::optional<std::string> map_name = | 216 | std::optional<std::string> map_name = |
| 213 | h_port.required_door().has_map() | 217 | h_port.required_door().has_map() |
