mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Merge pull request #85 from Anonim17PL/master
Poprawki po078470c,2a5d8cci7cac46d
This commit is contained in:
@@ -11395,7 +11395,7 @@ void TMoverParameters::LoadFIZ_PowerParamsDecode( TPowerParameters &Powerparamet
|
||||
extract_value(PantType, "PantType", Line, "");
|
||||
if (PantType == "AKP_4E")
|
||||
collectorparameters.PantographType = TPantType::AKP_4E;
|
||||
if (PantType._Starts_with("DSA")) // zakladam ze wszystkie pantografy DSA sa takie same
|
||||
if (PantType.rfind("DSA",0) == 0) // zakladam ze wszystkie pantografy DSA sa takie same
|
||||
collectorparameters.PantographType = TPantType::DSAx;
|
||||
if (PantType == "EC160" || PantType == "EC200")
|
||||
collectorparameters.PantographType = TPantType::EC160_200;
|
||||
|
||||
@@ -38,7 +38,7 @@ public:
|
||||
run();
|
||||
// issues request for a worker thread to perform specified task. returns: true if task was scheduled
|
||||
|
||||
void eu07_application::DiscordRPCService(); // discord rich presence service function (runs as separate thread)
|
||||
void DiscordRPCService(); // discord rich presence service function (runs as separate thread)
|
||||
bool
|
||||
request( python_taskqueue::task_request const &Task );
|
||||
// ensures the main thread holds the python gil and can safely execute python calls
|
||||
|
||||
@@ -474,7 +474,8 @@ particle_manager::find( std::string const &Template ) {
|
||||
}
|
||||
// ... and if it fails try to add the template to the database from a data file
|
||||
smoke_source source;
|
||||
if( source.deserialize( cParser( templatepath + templatename + ".txt", cParser::buffer_FILE ) ) ) {
|
||||
cParser sound_parser( templatepath + templatename + ".txt", cParser::buffer_FILE );
|
||||
if( source.deserialize( sound_parser ) ) {
|
||||
// if deserialization didn't fail finish source setup...
|
||||
source.m_opacitymodifier.bind( &Global.SmokeFidelity );
|
||||
// ...then cache the source as template for future instances
|
||||
|
||||
Reference in New Issue
Block a user