mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Deduplicate code and use stdlib in string functions
This commit is contained in:
parent
d91559b8f0
commit
3c3887bb19
4 changed files with 168 additions and 218 deletions
|
@ -1380,7 +1380,7 @@ bool TextureSource::generateImagePart(std::string part_of_name,
|
|||
return false;
|
||||
}
|
||||
|
||||
str_replace_char(part_of_name, '&', '^');
|
||||
str_replace(part_of_name, '&', '^');
|
||||
Strfnd sf(part_of_name);
|
||||
sf.next("{");
|
||||
std::string imagename_top = sf.next("{");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue