diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2022-08-13 08:52:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-13 08:52:16 +0200 |
commit | 023a1c2427fa34d5a87e7234c0c322d56765082b (patch) | |
tree | 2a24ab5e2838452959d225b1015292350b1a0d57 /src/texture_override.h | |
parent | 8bf1609cccba24e2516ecb98dbf694b91fe697bf (diff) | |
download | minetest-023a1c2427fa34d5a87e7234c0c322d56765082b.tar.xz |
Textures: introduce world-align overrides (#12540)
Many games do not care about world align textures, however texture packs should have the capabilities to change that if they have suitable textures. This commmit now introduces a node property override for world-align in particular to force a certain scale on the selected override tiles.
Diffstat (limited to 'src/texture_override.h')
-rw-r--r-- | src/texture_override.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/texture_override.h b/src/texture_override.h index bdc95e732..4c09fa540 100644 --- a/src/texture_override.h +++ b/src/texture_override.h @@ -57,7 +57,8 @@ struct TextureOverride { std::string id; std::string texture; - override_t target; + override_t target = 0; + u8 world_scale = 0; // Helper function for checking if an OverrideTarget is found in // a TextureOverride without casting |