Unbreak resolution texture hint.
This commit is contained in:
@@ -29,7 +29,7 @@ static void GetResolutionFromFileName( RString sPath, int &iWidth, int &iHeight
|
||||
// Check for nonsense values. Some people might not intend the hint. -Kyz
|
||||
int maybe_width= StringToInt(asMatches[0]);
|
||||
int maybe_height= StringToInt(asMatches[1]);
|
||||
if(maybe_width <= 0 || maybe_height <= 0 || maybe_width > iWidth || maybe_height > iHeight)
|
||||
if(maybe_width <= 0 || maybe_height <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user