summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-05-10 01:34:21 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:32:43 +0200
commit6537dfe7f103161676a8850801383b0d63efd40e (patch)
treef5c7fc57cd126bfcdc27f17076d8c390efa5aa22 /src/vehicles
parentupdate librw (diff)
downloadre3-6537dfe7f103161676a8850801383b0d63efd40e.tar
re3-6537dfe7f103161676a8850801383b0d63efd40e.tar.gz
re3-6537dfe7f103161676a8850801383b0d63efd40e.tar.bz2
re3-6537dfe7f103161676a8850801383b0d63efd40e.tar.lz
re3-6537dfe7f103161676a8850801383b0d63efd40e.tar.xz
re3-6537dfe7f103161676a8850801383b0d63efd40e.tar.zst
re3-6537dfe7f103161676a8850801383b0d63efd40e.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Plane.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicles/Plane.cpp b/src/vehicles/Plane.cpp
index 532be938..8ea03bf7 100644
--- a/src/vehicles/Plane.cpp
+++ b/src/vehicles/Plane.cpp
@@ -106,7 +106,7 @@ void
CPlane::DeleteRwObject(void)
{
if(m_rwObject && RwObjectGetType(m_rwObject) == rpATOMIC){
- m_matrix.Detach();
+ GetMatrix().Detach();
if(RwObjectGetType(m_rwObject) == rpATOMIC){ // useless check
RwFrame *f = RpAtomicGetFrame((RpAtomic*)m_rwObject);
RpAtomicDestroy((RpAtomic*)m_rwObject);
@@ -556,13 +556,13 @@ CPlane::ProcessControl(void)
m_rwObject = CModelInfo::GetModelInfo(mi->m_planeLodId)->CreateInstance();
POP_MEMID();
if(m_rwObject)
- m_matrix.AttachRW(RwFrameGetMatrix(RpAtomicGetFrame((RpAtomic*)m_rwObject)));
+ GetMatrix().AttachRW(RwFrameGetMatrix(RpAtomicGetFrame((RpAtomic*)m_rwObject)));
}
}
}else if(CStreaming::HasModelLoaded(GetModelIndex())){
if(m_rwObject && RwObjectGetType(m_rwObject) == rpATOMIC){
// Get rid of LOD model
- m_matrix.Detach();
+ GetMatrix().Detach();
if(m_rwObject){ // useless check
if(RwObjectGetType(m_rwObject) == rpATOMIC){ // useless check
RwFrame *f = RpAtomicGetFrame((RpAtomic*)m_rwObject);