mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fixed exploding body parts
This commit is contained in:
parent
33edb092a9
commit
d8aced8ab4
2 changed files with 11 additions and 0 deletions
|
@ -669,7 +669,9 @@ void EndGameLoop(int levelIndex, GameStatus reason)
|
|||
void SetupInterpolation()
|
||||
{
|
||||
for (int i = 0; i < g_Level.Items.size(); i++)
|
||||
{
|
||||
g_Level.Items[i].DisableInterpolation = false;
|
||||
}
|
||||
}
|
||||
|
||||
void HandleControls(bool isTitle)
|
||||
|
|
|
@ -927,6 +927,15 @@ namespace TEN::Renderer
|
|||
for (int j = 0; j < MAX_BONES; j++)
|
||||
_items[i].OldAnimationTransforms[j] = _items[i].AnimationTransforms[j];
|
||||
}
|
||||
|
||||
for (int i = 0; i < ITEM_COUNT_MAX; i++)
|
||||
{
|
||||
_effects[i].OldPosition = _effects[i].Position;
|
||||
_effects[i].OldWorld = _effects[i].World;
|
||||
_effects[i].OldTranslation = _effects[i].Translation;
|
||||
_effects[i].OldRotation = _effects[i].Rotation;
|
||||
_effects[i].OldScale = _effects[i].Scale;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace TEN::Renderer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue