mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
refactoring: application mode code split
This commit is contained in:
@@ -14,8 +14,9 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "stdafx.h"
|
||||
#include "globals.h"
|
||||
|
||||
#include "world.h"
|
||||
#include "simulation.h"
|
||||
#include "simulationenvironment.h"
|
||||
#include "driver.h"
|
||||
#include "logs.h"
|
||||
#include "Console.h"
|
||||
#include "PyInt.h"
|
||||
@@ -94,7 +95,7 @@ global_settings::ConfigParse(cParser &Parser) {
|
||||
{ // Mczapkie-130302
|
||||
|
||||
Parser.getTokens();
|
||||
Parser >> bFreeFly;
|
||||
Parser >> FreeFlyModeFlag;
|
||||
Parser.getTokens(3, false);
|
||||
Parser >>
|
||||
FreeCameraInit[0].x,
|
||||
@@ -298,7 +299,7 @@ global_settings::ConfigParse(cParser &Parser) {
|
||||
std::tm *localtime = std::localtime(&timenow);
|
||||
fMoveLight = localtime->tm_yday + 1; // numer bieżącego dnia w roku
|
||||
}
|
||||
pWorld->compute_season( fMoveLight );
|
||||
simulation::Environment.compute_season( fMoveLight );
|
||||
}
|
||||
else if( token == "dynamiclights" ) {
|
||||
// number of dynamic lights in the scene
|
||||
|
||||
Reference in New Issue
Block a user