mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #1222 from acemod/cleanupWeather
Weather module macro cleanup
This commit is contained in:
commit
f835ba95e8
@ -16,12 +16,9 @@
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_temperature", "_pressure", "_relativeHumidity"];
|
||||
_temperature = _this select 0; // in C
|
||||
_pressure = _this select 1; // in hPa
|
||||
_relativeHumidity = _this select 2; // as ratio 0-1
|
||||
PARAMS_3(_temperature, _pressure, _relativeHumidity);
|
||||
|
||||
_pressure = _pressure * 100;
|
||||
_pressure = _pressure * 100; // hPa to Pa
|
||||
|
||||
if (_relativeHumidity > 0) then {
|
||||
private ["_pSat", "_vaporPressure", "_partialPressure"];
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
private ["_windSpeed", "_windDir", "_height", "_newWindSpeed", "_windSource", "_roughnessLength"];
|
||||
|
||||
EXPLODE_4_PVT(_this,_position,_windGradientEnabled,_terrainEffectEnabled,_obstacleEffectEnabled);
|
||||
PARAMS_4(_position,_windGradientEnabled,_terrainEffectEnabled,_obstacleEffectEnabled);
|
||||
|
||||
fnc_polar2vect = {
|
||||
private ["_mag2D"];
|
||||
|
Loading…
Reference in New Issue
Block a user