mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Concat string
This commit is contained in:
parent
bb38c0d107
commit
bd6d2ecb5f
1 changed files with 2 additions and 2 deletions
|
@ -669,7 +669,7 @@ MapBlockMesh::MapBlockMesh(Client *client, MeshMakeData *data):
|
|||
os << m_tsrc->getTextureName((*p.layer.frames)[j].texture_id) << "^[crack";
|
||||
if (p.layer.material_flags & MATERIAL_FLAG_CRACK_OVERLAY)
|
||||
os << "o"; // use ^[cracko
|
||||
os << ":" << 1 << ":";
|
||||
os << ":1:";
|
||||
|
||||
crack_frames[j] = os.str();
|
||||
}
|
||||
|
@ -700,7 +700,7 @@ MapBlockMesh::MapBlockMesh(Client *client, MeshMakeData *data):
|
|||
u8 tiles = p.layer.scale;
|
||||
if (tiles > 1)
|
||||
os << ":" << (u32)tiles;
|
||||
os << ":" << 1 << ":";
|
||||
os << ":1:";
|
||||
m_crack_materials.insert(std::make_pair(
|
||||
std::pair<u8, u32>(layer, i), os.str()));
|
||||
// Replace tile texture with the cracked one
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue