From ea21eee2254fb2e667732d8f1b0f83c439a89bfa Mon Sep 17 00:00:00 2001 From: Garux Date: Thu, 23 Dec 2021 17:23:57 +0300 Subject: [PATCH] fix 1bd3e7ae186b55fb61e3738d2493432c0b1f5a7b --- plugins/assmodel/model.cpp | 4 ++-- tools/quake3/q3map2/model.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/assmodel/model.cpp b/plugins/assmodel/model.cpp index 31d6407b..602c5be4 100644 --- a/plugins/assmodel/model.cpp +++ b/plugins/assmodel/model.cpp @@ -238,9 +238,9 @@ private: aiReturn_SUCCESS == material->Get( AI_MATKEY_TEXTURE_DIFFUSE(0), texname ) && texname.length != 0 && !string_equal_prefix_nocase( matname.C_Str(), "textures/" ) /* matname looks intentionally named as ingame shader */ - && !string_equal_prefix_nocase( matname.C_Str(), "textures\"" ) + && !string_equal_prefix_nocase( matname.C_Str(), "textures\\" ) && !string_equal_prefix_nocase( matname.C_Str(), "models/" ) - && !string_equal_prefix_nocase( matname.C_Str(), "models\"" ) ){ + && !string_equal_prefix_nocase( matname.C_Str(), "models\\" ) ){ #ifdef _DEBUG globalOutputStream() << "texname: " << texname.C_Str() << "\n"; #endif diff --git a/tools/quake3/q3map2/model.cpp b/tools/quake3/q3map2/model.cpp index ac88eaf2..56e7a8af 100644 --- a/tools/quake3/q3map2/model.cpp +++ b/tools/quake3/q3map2/model.cpp @@ -206,9 +206,9 @@ struct AssModel aiReturn_SUCCESS == material->Get( AI_MATKEY_TEXTURE_DIFFUSE(0), texname ) && texname.length != 0 && !string_equal_prefix_nocase( matname.C_Str(), "textures/" ) /* matname looks intentionally named as ingame shader */ - && !string_equal_prefix_nocase( matname.C_Str(), "textures\"" ) + && !string_equal_prefix_nocase( matname.C_Str(), "textures\\" ) && !string_equal_prefix_nocase( matname.C_Str(), "models/" ) - && !string_equal_prefix_nocase( matname.C_Str(), "models\"" ) ){ + && !string_equal_prefix_nocase( matname.C_Str(), "models\\" ) ){ #ifdef _DEBUG Sys_Printf( "texname: %s\n", texname.C_Str() ); #endif