diff --git a/Sources/Engine/Entities/Entity.h b/Sources/Engine/Entities/Entity.h index d1d05c8..6d0d725 100644 --- a/Sources/Engine/Entities/Entity.h +++ b/Sources/Engine/Entities/Entity.h @@ -681,19 +681,19 @@ inline CEntity& CEntityPointer::operator*(void) const { return *ep_pen; } ///////////////////////////////////////////////////////////////////// // Reference counting functions inline void CEntity::AddReference(void) { - if (this!=NULL) { + //if (this!=NULL) { ASSERT(en_ctReferences>=0); en_ctReferences++; - } + //} }; inline void CEntity::RemReference(void) { - if (this!=NULL) { + //if (this!=NULL) { ASSERT(en_ctReferences>0); en_ctReferences--; if(en_ctReferences==0) { delete this; } - } + //} }; /* diff --git a/Sources/Engine/Graphics/Gfx_wrapper.h b/Sources/Engine/Graphics/Gfx_wrapper.h index e11a596..bb2565d 100644 --- a/Sources/Engine/Graphics/Gfx_wrapper.h +++ b/Sources/Engine/Graphics/Gfx_wrapper.h @@ -168,7 +168,7 @@ public: GfxWrap tp_eWrapU, tp_eWrapV; // wrapping states inline CTexParams(void) { Clear(); tp_bSingleMipmap = FALSE; }; inline void Clear(void) { tp_iFilter = 00; tp_iAnisotropy = 0; tp_eWrapU = tp_eWrapV = (GfxWrap)NONE; }; - inline BOOL IsEqual( CTexParams tp) { return tp_iFilter==tp.tp_iFilter && tp_iAnisotropy==tp_iAnisotropy && + inline BOOL IsEqual( CTexParams tp) { return tp_iFilter==tp.tp_iFilter && tp_iAnisotropy==tp.tp_iAnisotropy && tp_eWrapU==tp.tp_eWrapU && tp_eWrapV==tp.tp_eWrapV; }; }; diff --git a/Sources/Engine/Templates/StaticStackArray.cpp b/Sources/Engine/Templates/StaticStackArray.cpp index db79054..b80636d 100644 --- a/Sources/Engine/Templates/StaticStackArray.cpp +++ b/Sources/Engine/Templates/StaticStackArray.cpp @@ -67,7 +67,7 @@ template inline Type &CStaticStackArray::Push(void) { sa_UsedCount++; if (sa_UsedCount>CStaticArray::Count()) { - Expand(CStaticArray::Count()+sa_ctAllocationStep); + this->Expand(CStaticArray::Count()+sa_ctAllocationStep); } ASSERT(sa_UsedCount <= CStaticArray::Count()); return CStaticArray::operator[](sa_UsedCount-1); diff --git a/Sources/EntitiesMP/Camera.es b/Sources/EntitiesMP/Camera.es index 6067825..bb11aa0 100644 --- a/Sources/EntitiesMP/Camera.es +++ b/Sources/EntitiesMP/Camera.es @@ -588,14 +588,13 @@ procedures: PlayCamera() { // eventually add to movers list - CCameraMarker &cm = (CCameraMarker&)*m_penTarget; // if auto rotating if( m_bAutoRotation) { jump PlayAutoRotatingCamera(); } // if there is at least one marker - else if( &cm!=NULL) + else if( m_penTarget!=NULL) { // treat camera as movable jump PlayMovingCamera();