16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 12:39:17 +02:00

fixes for sound transcripts, conversion of win1250cp to plain ascii, tga loader

This commit is contained in:
tmj-fstate
2017-02-15 00:37:12 +01:00
parent b0ed27ba91
commit cf48989f39
11 changed files with 148 additions and 24 deletions

View File

@@ -4633,8 +4633,13 @@ void TDynamicObject::LoadMMediaFile(std::string BaseDir, std::string TypeName,
*/
if( true == pAnimations.empty() )
{ // Ra: tworzenie tabeli animacji, jeśli jeszcze nie było
if (!iAnimations) // jeśli nie podano jawnie, ile ma być animacji
/*
// disabled as default animation amounts are no longer supported
if( !iAnimations ) {
// jeśli nie podano jawnie, ile ma być animacji
iAnimations = 28; // tyle było kiedyś w każdym pojeździe (2 wiązary wypadły)
}
*/
/* //pojazd może mieć pantograf do innych celów niż napęd
if (MoverParameters->EnginePowerSource.SourceType!=CurrentCollector)
{//nie będzie pantografów, to się trochę uprości
@@ -5463,6 +5468,11 @@ void TDynamicObject::LoadMMediaFile(std::string BaseDir, std::string TypeName,
} while( ( token != "" )
&& ( false == Stop_InternalData ) );
if( !iAnimations ) {
// if the animations weren't defined the model is likely to be non-functional. warrants a warning.
ErrorLog( "Animations tag is missing from the .mmd file \"" + asFileName + "\"" );
}
if (mdModel)
mdModel->Init(); // obrócenie modelu oraz optymalizacja, również zapisanie
// binarnego