mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 22:39:18 +02:00
miscellaneous bug fixes.
This commit is contained in:
27
Ground.cpp
27
Ground.cpp
@@ -2653,26 +2653,29 @@ bool TGround::Init(std::string asFile, HDC hDC)
|
||||
TEvent *found = FindEvent(tmp->asName);
|
||||
if (found)
|
||||
{ // jeśli znaleziony duplikat
|
||||
int i = tmp->asName.length();
|
||||
if (tmp->asName[1] == '#') // zawsze jeden znak co najmniej jest
|
||||
auto const size = tmp->asName.size();
|
||||
if( tmp->asName[0] == '#' ) // zawsze jeden znak co najmniej jest
|
||||
{
|
||||
delete tmp;
|
||||
tmp = NULL;
|
||||
tmp = nullptr;
|
||||
} // utylizacja duplikatu z krzyżykiem
|
||||
else if (i > 8 ? tmp->asName.substr(0, 9) == "lineinfo:" :
|
||||
false) // tymczasowo wyjątki
|
||||
else if( ( size > 8 )
|
||||
&& ( tmp->asName.substr( 0, 9 ) == "lineinfo:" ))
|
||||
// tymczasowo wyjątki
|
||||
{
|
||||
delete tmp;
|
||||
tmp = NULL;
|
||||
tmp = nullptr;
|
||||
} // tymczasowa utylizacja duplikatów W5
|
||||
else if (i > 8 ? tmp->asName.substr(i - 7, 8) == "_warning" :
|
||||
false) // tymczasowo wyjątki
|
||||
else if( ( size > 8 )
|
||||
&& ( tmp->asName.substr( size - 8 ) == "_warning"))
|
||||
// tymczasowo wyjątki
|
||||
{
|
||||
delete tmp;
|
||||
tmp = NULL;
|
||||
tmp = nullptr;
|
||||
} // tymczasowa utylizacja duplikatu z trąbieniem
|
||||
else if (i > 4 ? tmp->asName.substr(i - 3, 4) == "_shp" :
|
||||
false) // nie podlegają logowaniu
|
||||
else if( ( size > 4 )
|
||||
&& ( tmp->asName.substr( size - 4 ) == "_shp" ))
|
||||
// nie podlegają logowaniu
|
||||
{
|
||||
delete tmp;
|
||||
tmp = NULL;
|
||||
@@ -2690,7 +2693,7 @@ bool TGround::Init(std::string asFile, HDC hDC)
|
||||
// zaśmiecać drzewka
|
||||
}
|
||||
}
|
||||
if (tmp)
|
||||
if ( nullptr != tmp )
|
||||
{ // jeśli nie duplikat
|
||||
tmp->evNext2 = RootEvent; // lista wszystkich eventów (m.in. do InitEvents)
|
||||
RootEvent = tmp;
|
||||
|
||||
Reference in New Issue
Block a user