mirror of
https://github.com/celisej567/LibBSP.git
synced 2026-01-06 14:10:55 +03:00
Revert trimming leading "textures/" from texture names during sanitization.
This commit is contained in:
@@ -433,7 +433,7 @@ namespace LibBSP {
|
||||
|
||||
/// <summary>
|
||||
/// Returns a texture <see cref="name"/> with back slashes converted to forward slashes,
|
||||
/// Source cubemap names fixed, and trimming leading "Textures/" in Quake 3.
|
||||
/// Source cubemap names fixed, etc.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the texture to process.</param>
|
||||
/// <param name="mapType">The <see cref="MapType"/> of the BSP this texture name is from.</param>
|
||||
@@ -502,18 +502,6 @@ namespace LibBSP {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case MapType.Quake3:
|
||||
case MapType.MOHAA:
|
||||
case MapType.CoD:
|
||||
case MapType.STEF2:
|
||||
case MapType.STEF2Demo:
|
||||
case MapType.Raven:
|
||||
case MapType.FAKK: {
|
||||
if (sanitized.Length >= 9 && sanitized.Substring(0, 9).Equals("textures/", StringComparison.InvariantCultureIgnoreCase)) {
|
||||
sanitized = sanitized.Substring(9);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return sanitized;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user