refactoring: application mode code split

This commit is contained in:
tmj-fstate
2018-08-02 20:39:19 +02:00
parent 460bf6d382
commit ff6bed67a9
74 changed files with 5375 additions and 2921 deletions

View File

@@ -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