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:
12
Ground.cpp
12
Ground.cpp
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user