mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-06 00:02:26 +01:00
fix: sonar sast fixes - sonar.yml, nosonar, linux chmod modification
This commit is contained in:
@@ -1901,7 +1901,7 @@ TController::TController(bool AI, TDynamicObject *NewControll, bool InitPsyche,
|
||||
#ifdef _WIN32
|
||||
CreateDirectory( "physicslog", nullptr);
|
||||
#elif __unix__
|
||||
mkdir( "physicslog", 0744 );
|
||||
mkdir( "physicslog", 0740 );
|
||||
#endif
|
||||
LogFile.open( std::string( "physicslog/" + VehicleName + ".dat" ),
|
||||
std::ios::in | std::ios::out | std::ios::trunc );
|
||||
|
||||
@@ -3024,7 +3024,8 @@ TDynamicObject::update_load_offset() {
|
||||
void
|
||||
TDynamicObject::shuffle_load_order() {
|
||||
|
||||
std::shuffle( std::begin( SectionLoadOrder ), std::end( SectionLoadOrder ), Global.random_engine );
|
||||
// order of visible load chunks, nothing security related -- see the engines in Globals.h
|
||||
std::shuffle( std::begin( SectionLoadOrder ), std::end( SectionLoadOrder ), Global.random_engine ); // NOSONAR
|
||||
// shift chunks assigned to corridors to the end of the list, so they show up last
|
||||
std::stable_partition(
|
||||
std::begin( SectionLoadOrder ), std::end( SectionLoadOrder ),
|
||||
|
||||
Reference in New Issue
Block a user