mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 18:39:18 +02:00
Merge branch 'tmj-dev' into milek-dev
This commit is contained in:
@@ -499,6 +499,10 @@ void TController::TableTraceRoute(double fDistance, TDynamicObject *pVehicle)
|
|||||||
tLast = nullptr; //żaden nie sprawdzony
|
tLast = nullptr; //żaden nie sprawdzony
|
||||||
SemNextIndex = -1;
|
SemNextIndex = -1;
|
||||||
SemNextStopIndex = -1;
|
SemNextStopIndex = -1;
|
||||||
|
if( VelSignalLast == 0.0 ) {
|
||||||
|
// don't allow potential red light overrun keep us from reversing
|
||||||
|
VelSignalLast = -1.0;
|
||||||
|
}
|
||||||
fTrackLength = pTrack->Length(); //skasowanie zmian w zmiennej żeby poprawnie liczyło w dalszych krokach
|
fTrackLength = pTrack->Length(); //skasowanie zmian w zmiennej żeby poprawnie liczyło w dalszych krokach
|
||||||
MoveDistanceReset(); // AI startuje 1s po zaczęciu jazdy i mógł już coś przejechać
|
MoveDistanceReset(); // AI startuje 1s po zaczęciu jazdy i mógł już coś przejechać
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -287,14 +287,12 @@ TTraction::create_geometry( gfx::geometrybank_handle const &Bank ) {
|
|||||||
|
|
||||||
// Przewody pionowe (wieszaki) 'Marcin, poprawki na 2 przewody jezdne 'Winger
|
// Przewody pionowe (wieszaki) 'Marcin, poprawki na 2 przewody jezdne 'Winger
|
||||||
if( Wires > 1 ) {
|
if( Wires > 1 ) {
|
||||||
|
auto const flo { static_cast<float>( Wires == 4 ? 0.25f * fHeightDifference : 0 ) };
|
||||||
|
auto const flo1 { static_cast<float>( Wires == 4 ? +0.05 : 0 ) };
|
||||||
for( int i = 0; i < iNumSections - 1; ++i ) {
|
for( int i = 0; i < iNumSections - 1; ++i ) {
|
||||||
float flo, flo1;
|
|
||||||
flo = ( Wires == 4 ? 0.25f * fHeightDifference : 0 );
|
|
||||||
flo1 = ( Wires == 4 ? +0.05 : 0 );
|
|
||||||
pt3 = pPoint3 + v1 * f;
|
pt3 = pPoint3 + v1 * f;
|
||||||
pt4 = pPoint1 + v2 * f;
|
pt4 = pPoint1 + v2 * f;
|
||||||
t = ( 1 - std::fabs( f - mid ) * 2 );
|
t = ( 1 - std::fabs( f - mid ) * 2 );
|
||||||
|
|
||||||
if( ( i % 2 ) == 0 ) {
|
if( ( i % 2 ) == 0 ) {
|
||||||
startvertex.position =
|
startvertex.position =
|
||||||
glm::vec3(
|
glm::vec3(
|
||||||
@@ -319,7 +317,7 @@ TTraction::create_geometry( gfx::geometrybank_handle const &Bank ) {
|
|||||||
glm::vec3(
|
glm::vec3(
|
||||||
pt4.x + ( pPoint2.z / ddp - pPoint1.z / ddp ) * WireOffset - m_origin.x,
|
pt4.x + ( pPoint2.z / ddp - pPoint1.z / ddp ) * WireOffset - m_origin.x,
|
||||||
pt4.y - m_origin.y,
|
pt4.y - m_origin.y,
|
||||||
pt4.z - ( -pPoint2.x / ddp + pPoint1.x / ddp ) * WireOffset - m_origin.z );
|
pt4.z + ( -pPoint2.x / ddp + pPoint1.x / ddp ) * WireOffset - m_origin.z );
|
||||||
vertices.emplace_back( startvertex );
|
vertices.emplace_back( startvertex );
|
||||||
vertices.emplace_back( endvertex );
|
vertices.emplace_back( endvertex );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ opengl_material::deserialize_mapping( cParser &Input, int const Priority, bool c
|
|||||||
// seasonal textures override generic textures
|
// seasonal textures override generic textures
|
||||||
// skip the opening bracket
|
// skip the opening bracket
|
||||||
auto const value { Input.getToken<std::string>( true, "\n\r\t ;" ) };
|
auto const value { Input.getToken<std::string>( true, "\n\r\t ;" ) };
|
||||||
while( true == deserialize_mapping( Input, 1, Loadnow ) ) {
|
while( true == deserialize_mapping( Input, Priority + 1, Loadnow ) ) {
|
||||||
; // all work is done in the header
|
; // all work is done in the header
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user