summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-05-10 01:48:56 +0200
committerSergeanur <s.anureev@yandex.ua>2021-05-10 01:48:56 +0200
commit8f54093de1616d3a92ec39ad4e77e84d11d838cb (patch)
tree3ca9f2943e845953e38a1ea258766cb247cf8217 /src/vehicles
parentMerge remote-tracking branch 'origin/miami' into lcs (diff)
parentfix (diff)
downloadre3-8f54093de1616d3a92ec39ad4e77e84d11d838cb.tar
re3-8f54093de1616d3a92ec39ad4e77e84d11d838cb.tar.gz
re3-8f54093de1616d3a92ec39ad4e77e84d11d838cb.tar.bz2
re3-8f54093de1616d3a92ec39ad4e77e84d11d838cb.tar.lz
re3-8f54093de1616d3a92ec39ad4e77e84d11d838cb.tar.xz
re3-8f54093de1616d3a92ec39ad4e77e84d11d838cb.tar.zst
re3-8f54093de1616d3a92ec39ad4e77e84d11d838cb.zip
Diffstat (limited to 'src/vehicles')
-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 48f7b8c0..0b40ca7e 100644
--- a/src/vehicles/Plane.cpp
+++ b/src/vehicles/Plane.cpp
@@ -123,7 +123,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);
@@ -567,13 +567,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);