mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 03:09:18 +02:00
Replace starts_with and ends_with with string class methods
This commit is contained in:
@@ -1324,8 +1324,7 @@ texture_manager::create( std::string Filename, bool const Loadnow, GLint Formath
|
||||
erase_leading_slashes( Filename );
|
||||
Filename = ToLower( Filename );
|
||||
// temporary code for legacy assets -- textures with names beginning with # are to be sharpened
|
||||
if( ( starts_with( Filename, "#" ) )
|
||||
|| ( contains( Filename, "/#" ) ) ) {
|
||||
if( Filename.starts_with("#") || contains( Filename, "/#" ) ) {
|
||||
traits += '#';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user