Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: A10/A10C/Header/Avionics/avDTSAS.h
- ===================================================================
- --- A10/A10C/Header/Avionics/avDTSAS.h (revision 91480)
- +++ A10/A10C/Header/Avionics/avDTSAS.h (working copy)
- @@ -7,6 +7,7 @@
- #include "A10Common/Header/Avionics/avEGI.h"
- #include "FMElectricSystems/Items/Consumer.h"
- +#include "edTerrain/ITerrain.h"
- using namespace EagleFM;
- @@ -161,7 +162,11 @@
- DTSAS_Status PR_Status; // Passive Ranging status
- DTSAS_Status LAR_Status; // Look Aside Ranging status
- float OWC; // Obstacle Warning Cue
- +#ifndef USE_TERRAIN4
- landscape::lPointOnSurface surfInfo;
- +#else
- + edterrain::PointOnSurfaceAdapter surfInfo;
- +#endif
- // DTSAS map
- A10Common::PosInfo Map_Center; // round area [R = Map_Side]
- Index: A10/A10C/SConscript
- ===================================================================
- --- A10/A10C/SConscript (revision 91480)
- +++ A10/A10C/SConscript (working copy)
- @@ -1,11 +1,14 @@
- Import('env')
- +CPPDEFINES = [
- + 'COCKPITA10C_EXPORTS',
- + ]
- +
- LIBS = [
- 'lua',
- 'edCore',
- 'edMath',
- 'edObjects',
- - 'edTerrain',
- 'World',
- 'WorldGeneral',
- 'Inter',
- @@ -22,6 +25,11 @@
- 'Weather',
- ]
- +if not env.has_key('TERRAIN4'):
- + LIBS += [
- + 'edTerrain',
- + ]
- +
- env.edDCSModule(
- modulePaths = ["aircrafts/A-10C"],
- target = 'Cockpit_A10C',
- @@ -61,9 +69,7 @@
- '../../../offshore/Include/',
- ],
- - CPPDEFINES = [
- - 'COCKPITA10C_EXPORTS',
- - ],
- + CPPDEFINES = CPPDEFINES,
- LIBS = LIBS
- );
- Index: A10/A10C/Source/Avionics/avDTSAS.cpp
- ===================================================================
- --- A10/A10C/Source/Avionics/avDTSAS.cpp (revision 91480)
- +++ A10/A10C/Source/Avionics/avDTSAS.cpp (working copy)
- @@ -226,7 +226,11 @@
- if (DTSAS_Function == DTSAS_ON)
- {
- surfInfo.set(x, z);
- +#ifndef USE_TERRAIN4
- return surfInfo.getHeight();
- +#else
- + return surfInfo.height();
- +#endif
- }
- return 0.0;
- Index: Base/Header/Avionics/Sensors/avSimpleRadar.h
- ===================================================================
- --- Base/Header/Avionics/Sensors/avSimpleRadar.h (revision 91480)
- +++ Base/Header/Avionics/Sensors/avSimpleRadar.h (working copy)
- @@ -9,6 +9,7 @@
- #include "Utilities/ccTriggerSystem.h"
- #include "Utilities/ccUtilities.h"
- #include "Avionics/avSimpleElectricSystem.h"
- +#include "edTerrain/PointOnSurfaceAdapter.h"
- class woSpot;
- @@ -137,8 +138,13 @@
- protected:
- radar_capabilities basic_capabilities;
- +#ifndef USE_TERRAIN4
- landscape::lPointOnSurface surf_info;
- landscape::lPointOnSurface surf_info_2;
- +#else
- + edterrain::PointOnSurfaceAdapter surf_info;
- + edterrain::PointOnSurfaceAdapter surf_info_2;
- +#endif
- woSpot *spot;
- Index: Base/Header/Avionics/Sensors/avTVSensor.h
- ===================================================================
- --- Base/Header/Avionics/Sensors/avTVSensor.h (revision 91480)
- +++ Base/Header/Avionics/Sensors/avTVSensor.h (working copy)
- @@ -3,6 +3,7 @@
- #include "ICommandsCockpitDevice.h"
- #include "viLight.h"
- #include "Avionics/Sensors/avBasicSensor.h"
- +#include "edTerrain/PointOnSurfaceAdapter.h"
- #ifdef _DEBUG
- #include "Renderer/DbgGraph.h"
- @@ -125,7 +126,11 @@
- class COCKPITBASE_API avTVSensor : public avBasicSensor
- {
- +#ifndef USE_TERRAIN4
- mutable landscape::lPointOnSurface _terrain_visibility_check_pnt_;
- +#else
- + mutable edterrain::PointOnSurfaceAdapter _terrain_visibility_check_pnt_;
- +#endif
- public:
- avTVSensor();
- ~avTVSensor();
- Index: Base/Header/LoadableEquipment/Weapon/eqTVGuidedWeapon.h
- ===================================================================
- --- Base/Header/LoadableEquipment/Weapon/eqTVGuidedWeapon.h (revision 91480)
- +++ Base/Header/LoadableEquipment/Weapon/eqTVGuidedWeapon.h (working copy)
- @@ -1,6 +1,7 @@
- #pragma once
- #include "Avionics/Sensors/avTVSensor.h"
- +#include "edTerrain/PointOnSurfaceAdapter.h"
- namespace cockpit {
- @@ -120,6 +121,10 @@
- bool forceCorrelateEnabled;
- wModelTime forceCorrelateEnableTime;
- +#ifndef USE_TERRAIN4
- mutable landscape::lPointOnSurface surfInfo;
- +#else
- + mutable edterrain::PointOnSurfaceAdapter surfInfo;
- +#endif
- };
- }
- Index: Base/SConscript
- ===================================================================
- --- Base/SConscript (revision 91480)
- +++ Base/SConscript (working copy)
- @@ -7,7 +7,6 @@
- 'edCore',
- 'edMath',
- 'edObjects',
- - 'edTerrain',
- 'World',
- 'WorldGeneral',
- 'Inter',
- @@ -30,6 +29,11 @@
- 'renderer',
- ]
- +if not env.has_key('TERRAIN4'):
- + libs += [
- + 'edTerrain',
- + ]
- +
- if not env.getUserVariable('FINAL_VERSION'):
- libs.append('JConfigurator')
- Index: Base/Source/Avionics/Sensors/avTVSensor.cpp
- ===================================================================
- --- Base/Source/Avionics/Sensors/avTVSensor.cpp (revision 91480)
- +++ Base/Source/Avionics/Sensors/avTVSensor.cpp (working copy)
- @@ -494,7 +494,7 @@
- dVector p = pos.p;
- // из А в Б, PointOnSurface перемещается в А, тогда правильней проверять от цели в себе
- - if (_terrain_visibility_check_pnt_.intersectSurface(p,self_p,0))
- + if (_terrain_visibility_check_pnt_.intersectSurface(p,self_p,(dPoint*)0))
- {
- return false;
- }
- Index: Base/Source/Avionics/Weapon/avWeaponsBombSight.cpp
- ===================================================================
- --- Base/Source/Avionics/Weapon/avWeaponsBombSight.cpp (revision 91480)
- +++ Base/Source/Avionics/Weapon/avWeaponsBombSight.cpp (working copy)
- @@ -15,6 +15,7 @@
- #include "Utilities/ccTriggerSystem.h"
- #include "mathDebug.h"
- #include "unit_converter.h"
- +#include "wTerrain.h"
- using namespace cockpit;
- @@ -403,9 +404,13 @@
- {
- if (!ElevationIsFixed)
- {
- +#ifndef USE_TERRAIN4
- static landscape::lPointOnSurface surfInfo;
- surfInfo.set(out.p.x, out.p.z);
- lead_target_level = surfInfo.getHeight();
- +#else
- + lead_target_level = globalLand->heightSurface(out.p.x, out.p.z);
- +#endif
- }
- else
- lead_target_level = target_level;
- @@ -456,9 +461,13 @@
- {
- if (!ElevationIsFixed)
- {
- +#ifndef USE_TERRAIN4
- static landscape::lPointOnSurface surfInfo;
- surfInfo.set(lead_human_position.p.x, lead_human_position.p.z);
- lead_target_level = surfInfo.getHeight();
- +#else
- + lead_target_level = globalLand->heightSurface(lead_human_position.p.x, lead_human_position.p.z);
- +#endif
- }
- else
- lead_target_level = target_level;
- Index: Base/Source/Utilities/ccLuaLoader.cpp
- ===================================================================
- --- Base/Source/Utilities/ccLuaLoader.cpp (revision 91480)
- +++ Base/Source/Utilities/ccLuaLoader.cpp (working copy)
- @@ -37,6 +37,7 @@
- #include "smSceneManager.h"
- #include "Oculus.h"
- #include "IwWorld.h"
- +#include "wTerrain.h"
- using namespace cockpit;
- using namespace Common;
- @@ -307,7 +308,11 @@
- }
- const char * data_name = lua_tostring(L,1);
- +#ifndef USE_TERRAIN4
- lua_State * terrain_state = GetTerraDispatch()->getTerrainCfg();
- +#else
- + lua_State * terrain_state = globalLand->getTerrainCfg();
- +#endif
- lua_getglobal(terrain_state,data_name);
- {
- ED_lua_copyindex (L,terrain_state,-1);
- Index: Ka50/Header/Avionics/ABRIS/avABRIS.h
- ===================================================================
- --- Ka50/Header/Avionics/ABRIS/avABRIS.h (revision 91480)
- +++ Ka50/Header/Avionics/ABRIS/avABRIS.h (working copy)
- @@ -23,6 +23,7 @@
- #include "Randomizer/RandomObject.h"
- #include "Avionics/avMovingMap.h"
- #include "Utilities/ccString32.h"
- +#include "edTerrain/PointOnSurfaceAdapter.h"
- class ABRIS_Waypoint_Checker;
- @@ -762,9 +763,13 @@
- private:
- double post_update_time;
- -
- +#ifndef USE_TERRAIN4
- landscape::lPointOnSurface surfInfo_cursor;
- landscape::lPointOnSurface surfInfo_marker;
- +#else
- + edterrain::PointOnSurfaceAdapter surfInfo_cursor;
- + edterrain::PointOnSurfaceAdapter surfInfo_marker;
- +#endif
- void update_point_under_cursor();
- EagleFM::ProbabilityChecker * blue_screen_checker;
- Index: Ka50/SConscript
- ===================================================================
- --- Ka50/SConscript (revision 91480)
- +++ Ka50/SConscript (working copy)
- @@ -1,5 +1,28 @@
- Import('env')
- +LIBS = [
- + 'edCore',
- + 'edMath',
- + 'edObjects',
- + 'World',
- + 'WorldGeneral',
- + 'Inter',
- + 'Flight',
- + 'FMBase',
- + 'GraphicsXP',
- + 'wRadio',
- + 'WeaponsBase',
- + 'CockpitBase',
- + 'Ka50',
- + 'lua',
- + 'Weather',
- + ]
- +
- +if not env.has_key('TERRAIN4'):
- + LIBS += [
- + 'edTerrain',
- + ]
- +
- env.edDCSModule(
- modulePaths = ["aircrafts/Ka-50"],
- target = 'CockpitKa50',
- @@ -39,22 +62,5 @@
- 'COCKPITKA50_EXPORTS',
- ],
- - LIBS = [
- - 'edCore',
- - 'edMath',
- - 'edObjects',
- - 'edTerrain',
- - 'World',
- - 'WorldGeneral',
- - 'Inter',
- - 'Flight',
- - 'FMBase',
- - 'GraphicsXP',
- - 'wRadio',
- - 'WeaponsBase',
- - 'CockpitBase',
- - 'Ka50',
- - 'lua',
- - 'Weather',
- - ]
- + LIBS = LIBS
- );
- Index: P51/P51Common/CommonD/Header/Avionics/avTailWarningRadar_AN_APS13.h
- ===================================================================
- --- P51/P51Common/CommonD/Header/Avionics/avTailWarningRadar_AN_APS13.h (revision 91480)
- +++ P51/P51Common/CommonD/Header/Avionics/avTailWarningRadar_AN_APS13.h (working copy)
- @@ -7,6 +7,7 @@
- #include "FMElectricSystems/Items/Consumer.h"
- #include "FMElectricSystems/Items/Lamp.h"
- #include "FMElectricSystems/Items/Switch.h"
- +#include "edTerrain/PointOnSurfaceAdapter.h"
- #ifdef _DEBUG
- #include "Renderer/DbgGraph.h"
- @@ -66,7 +67,11 @@
- DECLARE_DEV_LINKPTR(P51Common::avElectricInterface_P51,ElecInterface);
- +#ifndef USE_TERRAIN4
- mutable landscape::lPointOnSurface terrain_intersect_check_;
- +#else
- + mutable edterrain::PointOnSurfaceAdapter terrain_intersect_check_;
- +#endif
- void search();
- float MaxSearchRange_;
- Index: P51/P51Common/SConscript
- ===================================================================
- --- P51/P51Common/SConscript (revision 91480)
- +++ P51/P51Common/SConscript (working copy)
- @@ -1,5 +1,26 @@
- Import('env')
- +LIBS = [
- + 'edCore',
- + 'edMath',
- + 'edObjects',
- + 'World',
- + 'WorldGeneral',
- + 'Inter',
- + 'FMBase',
- + 'GraphicsXP',
- + 'CockpitBase',
- + 'lua',
- + 'P51Base',
- + 'wRadio',
- + 'Weather',
- + ]
- +
- +if not env.has_key('TERRAIN4'):
- + LIBS += [
- + 'edTerrain',
- + ]
- +
- env.edDCSModule(
- modulePaths = ["aircrafts/P-51D","aircrafts/TF-51D"],
- target = 'Cockpit_P51Common',
- @@ -34,20 +55,5 @@
- 'COCKPITP51COMMON_EXPORTS',
- ],
- - LIBS = [
- - 'edCore',
- - 'edMath',
- - 'edObjects',
- - 'edTerrain',
- - 'World',
- - 'WorldGeneral',
- - 'Inter',
- - 'FMBase',
- - 'GraphicsXP',
- - 'CockpitBase',
- - 'lua',
- - 'P51Base',
- - 'wRadio',
- - 'Weather',
- - ]
- + LIBS = LIBS
- );
Advertisement
Add Comment
Please, Sign In to add comment