Reverted change where flags param was removed on PushCellByRef and PushFloatByRef. Instead set the param to a default value of SM_PARAM_COPYBACK. (DS, how dare you!)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40591
This commit is contained in:
Scott Ehlert
2007-03-07 18:37:41 +00:00
parent dfed71eb28
commit 949b83c99b
5 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -434,7 +434,7 @@ int CForward::PushFloat(float number)
return SP_ERROR_NONE;
}
int CForward::PushCellByRef(cell_t *cell)
int CForward::PushCellByRef(cell_t *cell, int flags)
{
if (m_curparam < m_numparams)
{
@@ -452,13 +452,13 @@ int CForward::PushCellByRef(cell_t *cell)
m_params[m_curparam].pushedas = Param_CellByRef;
}
_Int_PushArray(cell, 1, SM_PARAM_COPYBACK);
_Int_PushArray(cell, 1, flags);
m_curparam++;
return SP_ERROR_NONE;
}
int CForward::PushFloatByRef(float *num)
int CForward::PushFloatByRef(float *num, int flags)
{
if (m_curparam < m_numparams)
{
@@ -476,7 +476,7 @@ int CForward::PushFloatByRef(float *num)
m_params[m_curparam].pushedas = Param_FloatByRef;
}
_Int_PushArray((cell_t *)num, 1, SM_PARAM_COPYBACK);
_Int_PushArray((cell_t *)num, 1, flags);
m_curparam++;
return SP_ERROR_NONE;