summaryrefslogtreecommitdiffstats
path: root/src/core/PlayerSkin.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-30 00:12:58 +0100
committerSergeanur <s.anureev@yandex.ua>2019-10-30 00:35:31 +0100
commitc202fc3b550b8fc569f510e2002241eec399c18d (patch)
treee3d267990b344709533c925a4169cd71dfaa8394 /src/core/PlayerSkin.cpp
parentCRadar::Initialise() + fixes (diff)
downloadre3-c202fc3b550b8fc569f510e2002241eec399c18d.tar
re3-c202fc3b550b8fc569f510e2002241eec399c18d.tar.gz
re3-c202fc3b550b8fc569f510e2002241eec399c18d.tar.bz2
re3-c202fc3b550b8fc569f510e2002241eec399c18d.tar.lz
re3-c202fc3b550b8fc569f510e2002241eec399c18d.tar.xz
re3-c202fc3b550b8fc569f510e2002241eec399c18d.tar.zst
re3-c202fc3b550b8fc569f510e2002241eec399c18d.zip
Diffstat (limited to 'src/core/PlayerSkin.cpp')
-rw-r--r--src/core/PlayerSkin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/PlayerSkin.cpp b/src/core/PlayerSkin.cpp
index 82427491..4d2c31df 100644
--- a/src/core/PlayerSkin.cpp
+++ b/src/core/PlayerSkin.cpp
@@ -28,7 +28,7 @@ FindPlayerDff(uint32 &offset, uint32 &size)
do {
if (!CFileMgr::Read(file, (char*)&info, sizeof(CDirectory::DirectoryInfo)))
return;
- } while (strcmpi("player.dff", info.name));
+ } while (strcasecmp("player.dff", info.name) != 0);
offset = info.offset;
size = info.size;
@@ -94,7 +94,7 @@ CPlayerSkin::GetSkinTexture(const char *texName)
CTxdStore::PopCurrentTxd();
if (tex) return tex;
- if (!strcmp(DEFAULT_SKIN_NAME, texName))
+ if (strcmp(DEFAULT_SKIN_NAME, texName) == 0)
sprintf(gString, "models\\generic\\player.bmp");
else
sprintf(gString, "skins\\%s.bmp", texName);