Skip to content

Commit

Permalink
xrEngine: hide include xrSASH under define for linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Aug 1, 2018
1 parent 2e79055 commit 7d819cf
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/xrEngine/Environment_misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ void CEnvironment::load_weather_effects()
sections_type& sections = config->sections();

env.reserve(sections.size() + 2);
env.push_back(create_descriptor("00:00:00", false));
env.push_back(create_descriptor("00:00:00", nullptr));

sections_type::const_iterator i2 = sections.begin();
sections_type::const_iterator e2 = sections.end();
Expand All @@ -661,7 +661,7 @@ void CEnvironment::load_weather_effects()

CInifile::Destroy(config);

env.push_back(create_descriptor("24:00:00", false));
env.push_back(create_descriptor("24:00:00", nullptr));
env.back()->exec_time_loaded = DAY_LENGTH;
}

Expand Down
3 changes: 2 additions & 1 deletion src/xrEngine/FDemoPlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
#include "Render.h"
#include "CameraManager.h"

#if !defined(LINUX)
#include "xrSASH.h"

#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 2 additions & 0 deletions src/xrEngine/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
#include "Include/editor/ide.hpp"
#include "engine_impl.hpp"

#if !defined(LINUX)
#include "xrSASH.h"
#endif
#include "IGame_Persistent.h"
#include "xrScriptEngine/ScriptExporter.hpp"
#include "XR_IOConsole.h"
Expand Down
2 changes: 2 additions & 0 deletions src/xrEngine/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
#define CTextConsole CConsole
#pragma todo("Implement text console or it's alternative")
#endif
#if !defined(LINUX)
#include "xrSASH.h"
#endif
#include "xr_ioc_cmd.h"

#ifdef MASTER_GOLD
Expand Down
2 changes: 2 additions & 0 deletions src/xrEngine/x_ray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
#include "std_classes.h"
#include "GameFont.h"
#include "xrCDB/ISpatial.h"
#if !defined(LINUX)
#include "xrSASH.h"
#endif
#include "xrServerEntities/smart_cast.h"
#include "xr_input.h"

Expand Down
2 changes: 2 additions & 0 deletions src/xrEngine/xr_ioc_cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#include "x_ray.h"
#include "XR_IOConsole.h"
#include "xr_ioc_cmd.h"
#if !defined(LINUX)
#include "xrSASH.h"
#endif

#include "CameraManager.h"
#include "Environment.h"
Expand Down

0 comments on commit 7d819cf

Please sign in to comment.