Skip to content

Commit

Permalink
xrCore/Animation: _strlwr() -> xr_strlwr().
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Nov 6, 2015
1 parent 1a0d2ff commit f518d9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/xrCore/Animation/Motion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class XRCORE_API CCustomMotion
CCustomMotion(CCustomMotion* src);
virtual ~CCustomMotion();

void SetName(const char* n) { string256 tmp; tmp[0] = 0; if (n) { xr_strcpy(tmp, n); strlwr(tmp); } name = tmp; }
void SetName(const char* n) { string256 tmp; tmp[0] = 0; if (n) { xr_strcpy(tmp, n); xr_strlwr(tmp); } name = tmp; }
LPCSTR Name() { return name.c_str(); }
int FrameStart() { return iFrameStart; }
int FrameEnd() { return iFrameEnd; }
Expand Down
4 changes: 2 additions & 2 deletions src/xrCore/Animation/SkeletonMotions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ BOOL motions_value::load(LPCSTR N, IReader* data, vecBones* bones)
{
CPartDef& PART = m_partition[part_i];
MP->r_stringZ(buf, sizeof(buf));
PART.Name = _strlwr(buf);
PART.Name = xr_strlwr(buf);
PART.bones.resize(MP->r_u16());

for (xr_vector<u32>::iterator b_it = PART.bones.begin(); b_it < PART.bones.end(); b_it++)
Expand Down Expand Up @@ -144,7 +144,7 @@ BOOL motions_value::load(LPCSTR N, IReader* data, vecBones* bones)
for (u16 mot_i = 0; mot_i < mot_count; mot_i++)
{
MP->r_stringZ(buf, sizeof(buf));
shared_str nm = _strlwr(buf);
shared_str nm = xr_strlwr(buf);
u32 dwFlags = MP->r_u32();
CMotionDef& D = m_mdefs[mot_i];
D.Load(MP, dwFlags, vers);
Expand Down

0 comments on commit f518d9e

Please sign in to comment.