Merge branch 'master' of https://github.com/rheit/zdoom
This commit is contained in:
commit
6df435c8c5
32 changed files with 298 additions and 242 deletions
|
|
@ -344,9 +344,10 @@ int DInterpolation::AddRef()
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
int DInterpolation::DelRef()
|
||||
int DInterpolation::DelRef(bool force)
|
||||
{
|
||||
if (refcount > 0) --refcount;
|
||||
if (force && refcount == 0) Destroy();
|
||||
return refcount;
|
||||
}
|
||||
|
||||
|
|
@ -943,20 +944,6 @@ DInterpolation *sector_t::SetInterpolation(int position, bool attach)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
void sector_t::StopInterpolation(int position)
|
||||
{
|
||||
if (interpolations[position] != NULL)
|
||||
{
|
||||
interpolations[position]->DelRef();
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
DInterpolation *FPolyObj::SetInterpolation()
|
||||
{
|
||||
if (interpolation != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue