Changed: Use TCHAR functions
--HG-- branch : develop
This commit is contained in:
parent
934df9bd6f
commit
f0c5b7ea40
2 changed files with 2 additions and 2 deletions
|
@ -764,7 +764,7 @@ void CLocatedBindableDialog::updateZBias()
|
||||||
m_ZBias.GetWindowText(value);
|
m_ZBias.GetWindowText(value);
|
||||||
float zbias = 0.f;
|
float zbias = 0.f;
|
||||||
int dummy; // to test if end of string as no not wanted extra characters
|
int dummy; // to test if end of string as no not wanted extra characters
|
||||||
if (sscanf((LPCTSTR) (value + "\n0"), "%f\n%d", &zbias, &dummy) == 2)
|
if (_stscanf((LPCTSTR)(value + _T("\n0")), _T("%f\n%d"), &zbias, &dummy) == 2)
|
||||||
{
|
{
|
||||||
NLMISC::safe_cast<NL3D::CPSParticle *>(_Bindable)->setZBias(-zbias);
|
NLMISC::safe_cast<NL3D::CPSParticle *>(_Bindable)->setZBias(-zbias);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1147,7 +1147,7 @@ BOOL CParticleTreeCtrl::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHA
|
||||||
{
|
{
|
||||||
float value;
|
float value;
|
||||||
int dummy; // to avoid non numeric characters at the end
|
int dummy; // to avoid non numeric characters at the end
|
||||||
if (sscanf ((LPCTSTR)(valueDlg.Value + "\n0"), "%f\n%d", &value, &dummy) == 2)
|
if (_stscanf((LPCTSTR)(valueDlg.Value + _T("\n0")), _T("%f\n%d"), &value, &dummy) == 2)
|
||||||
{
|
{
|
||||||
nlassert(getOwnerNode(nt)->getPSPointer());
|
nlassert(getOwnerNode(nt)->getPSPointer());
|
||||||
getOwnerNode(nt)->getPSPointer()->setZBias(-value);
|
getOwnerNode(nt)->getPSPointer()->setZBias(-value);
|
||||||
|
|
Loading…
Reference in a new issue