Redir Bugfix: Font's not redirecting correctly.

This commit is contained in:
Andrew Livy
2002-09-05 18:49:23 +00:00
parent d7626f6004
commit 8c1d27b85f
+3 -1
View File
@@ -187,7 +187,9 @@ try_element_again:
file.Open( sRedirFilePath, CFile::modeRead );
CString sNewFileName;
file.ReadString( sNewFileName );
CString sNewFilePath = sDir+"\\"+sNewFileName;
// CString sNewFilePath = sDir+"\\"+sNewFileName; // This is what it used to be, FONTS were getting extra slashes
// at the start of their file names, so I took out this extra slash - Andy.
CString sNewFilePath = sDir+sNewFileName;
if( sNewFileName == "" || !DoesFileExist(sNewFilePath) )
{
throw RageException( "The redirect '%s' points to the file '%s', which does not exist. Verify that this redirect is correct.", sRedirFilePath, sNewFilePath );