mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 13:29:19 +02:00
merge
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "stdafx.h"
|
||||
#include "PyInt.h"
|
||||
#include "renderer.h"
|
||||
#include "Train.h"
|
||||
#include "Logs.h"
|
||||
//#include <process.h>
|
||||
@@ -456,7 +457,7 @@ void TPythonScreens::init(cParser &parser, TModel3d *model, std::string const &n
|
||||
WriteLog( "Python Screen: submodel " + subModelName + " not found - Ignoring screen" );
|
||||
return; // nie ma takiego sub modelu w danej kabinie pomijamy
|
||||
}
|
||||
int textureId = TextureManager.Texture(subModel->GetTextureId()).id;
|
||||
int textureId = GfxRenderer.Texture(subModel->GetTextureId()).id;
|
||||
if (textureId <= 0)
|
||||
{
|
||||
WriteLog( "Python Screen: invalid texture id " + std::to_string(textureId) + " - Ignoring screen" );
|
||||
|
||||
Reference in New Issue
Block a user