mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Merge commit 'd8170c932b448ba6888e702746b5ae22632062d8' into sim
This commit is contained in:
@@ -82,7 +82,7 @@ basic_cell::update_traction( TDynamicObject *Vehicle, int const Pantographindex
|
||||
// i do tego jeszcze wejdzie pod ślizg
|
||||
if( fHorizontal <= 0.0 ) {
|
||||
// 0.635 dla AKP-1 AKP-4E
|
||||
SetFlag( Vehicle->MoverParameters->DamageFlag, dtrain_pantograph );
|
||||
SetFlag( Vehicle->MoverParameters->DamageFlag, dtrain_pantograph );
|
||||
pantograph->PantWys = -1.0; // ujemna liczba oznacza połamanie
|
||||
pantograph->hvPowerWire = nullptr; // bo inaczej się zasila w nieskończoność z połamanego
|
||||
if( Vehicle->MoverParameters->EnginePowerSource.CollectorParameters.CollectorsNo > 0 ) {
|
||||
@@ -1267,7 +1267,7 @@ basic_region::insert( shape_node Shape, scratch_data &Scratchpad, bool const Tra
|
||||
|
||||
auto const materialname{ GfxRenderer->Material( Shape.data().material ).name };
|
||||
for( auto const &switchtrackbedtexture : switchtrackbedtextures ) {
|
||||
if( materialname.find( switchtrackbedtexture ) != std::string::npos ) {
|
||||
if( contains( materialname, switchtrackbedtexture ) ) {
|
||||
// geometry with blacklisted texture, part of old switch trackbed; ignore it
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user