mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 19:29:19 +02:00
Merge branch 'tmj-dev' into nogfx
This commit is contained in:
12
Ground.cpp
12
Ground.cpp
@@ -351,13 +351,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)
|
||||
@@ -427,8 +431,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