16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 22:39:18 +02:00

fixed animation rate of scene elements

This commit is contained in:
tmj-fstate
2017-08-23 16:56:56 +02:00
parent 3a63d1d346
commit a41a666184
7 changed files with 98 additions and 98 deletions

View File

@@ -356,13 +356,17 @@ bool TSubRect::RaTrackAnimAdd(TTrack *t)
return false; // będzie animowane...
}
void TSubRect::RaAnimate()
{ // wykonanie animacji
if( tTrackAnim == nullptr ) {
// wykonanie animacji
void TSubRect::RaAnimate( unsigned int const Framestamp ) {
if( ( tTrackAnim == nullptr )
|| ( Framestamp == m_framestamp ) ) {
// nie ma nic do animowania
return;
}
tTrackAnim = tTrackAnim->RaAnimate(); // przeliczenie animacji kolejnego
m_framestamp = Framestamp;
};
TTraction * TSubRect::FindTraction(glm::dvec3 const &Point, int &iConnection, TTraction *Exclude)
@@ -431,8 +435,6 @@ void TSubRect::RenderSounds()
//---------------------------------------------------------------------------
//------------------ Kwadrat kilometrowy ------------------------------------
//---------------------------------------------------------------------------
int TGroundRect::iFrameNumber = 0; // licznik wyświetlanych klatek
TGroundRect::~TGroundRect()
{
SafeDeleteArray(pSubRects);