mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 04:19:19 +02:00
custom sounds for cab controls configurable on per-item basis
This commit is contained in:
@@ -1217,11 +1217,11 @@ TSubModel *TModel3d::GetFromName(const char *sName)
|
||||
if (!sName)
|
||||
return Root; // potrzebne do terenu z E3D
|
||||
if (iFlags & 0x0200) // wczytany z pliku tekstowego, wyszukiwanie rekurencyjne
|
||||
return Root ? Root->GetFromName(sName) : NULL;
|
||||
return Root ? Root->GetFromName(sName) : nullptr;
|
||||
else // wczytano z pliku binarnego, można wyszukać iteracyjnie
|
||||
{
|
||||
// for (int i=0;i<iSubModelsCount;++i)
|
||||
return Root ? Root->GetFromName(sName) : NULL;
|
||||
return Root ? Root->GetFromName(sName) : nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user