Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 09ae7e0

Browse files
committed
Hopefully fixed issue where ronin sniper in an exploding dropship would freeze the game
1 parent e69ff9e commit 09ae7e0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Entities/AtomGroup.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@ namespace RTE {
235235
m_Atoms.push_back(atomToAdd);
236236
m_SubGroups.at(subgroupID).push_back(atomToAdd);
237237
}
238-
if (!atomList.empty()) { m_MomentOfInertia = 0.0F; }
238+
if (!atomList.empty()) {
239+
m_MomentOfInertia = 0.0F;
240+
if (m_OwnerMOSR) { GetMomentOfInertia(); }
241+
}
239242
}
240243

241244
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -257,7 +260,10 @@ namespace RTE {
257260
}
258261
}
259262
m_SubGroups.erase(removeID);
260-
if (removedAny) { m_MomentOfInertia = 0.0F; }
263+
if (removedAny) {
264+
m_MomentOfInertia = 0.0F;
265+
if (m_OwnerMOSR) { GetMomentOfInertia(); }
266+
}
261267

262268
return removedAny;
263269
}

0 commit comments

Comments
 (0)