16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

AI cruise control fix, minor refactoring

This commit is contained in:
tmj-fstate
2018-08-19 14:40:48 +02:00
parent 4aeb98ecbe
commit 24eda2d63f
7 changed files with 33 additions and 56 deletions

View File

@@ -40,7 +40,7 @@ cParser::cParser( std::string const &Stream, buffertype const Type, std::string
if( ( Stream.size() >= 4 )
&& ( ToLower( Stream.substr( Stream.size() - 4 ) ) == ".inc" ) ) {
mIncFile = true;
scene::Groups.begin();
scene::Groups.create();
}
break;
}
@@ -75,7 +75,7 @@ cParser::~cParser() {
if( true == mIncFile ) {
// wrap up the node group holding content of processed file
scene::Groups.end();
scene::Groups.close();
}
}