mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 13:51:40 +00:00
Textures with whitespace at the beginning or end are now handled correctly. Fixes #522
This commit is contained in:
parent
4eb223b3f0
commit
4f9111d075
1 changed files with 3 additions and 2 deletions
|
@ -133,8 +133,9 @@ namespace CodeImp.DoomBuilder.IO
|
|||
//mxd. This returns (hopefully) unique hash value for a texture name of any length
|
||||
public static long MakeLongName(string name, bool uselongnames)
|
||||
{
|
||||
name = name.Trim().ToUpper();
|
||||
if(!uselongnames && name.Length > DataManager.CLASIC_IMAGE_NAME_LENGTH)
|
||||
// biwa. is using ToUpper a good idea? Will result in clashes with same names with different cases
|
||||
name = name.ToUpper();
|
||||
if (!uselongnames && name.Length > DataManager.CLASIC_IMAGE_NAME_LENGTH)
|
||||
{
|
||||
name = name.Substring(0, DataManager.CLASIC_IMAGE_NAME_LENGTH);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue