Default Altitude and Latitude are now read from the config

This commit is contained in:
ulteq 2015-04-07 20:59:05 +02:00
parent ab5518c35d
commit 5443d46f7b

View File

@ -11,9 +11,8 @@
*/
#include "script_component.hpp"
// @todo: Read Altitude and Latitud from config
GVAR(Altitude) = 0;
GVAR(Latitude) = 50;
GVAR(Altitude) = -getNumber(configFile >> "CfgWorlds" >> worldName >> "elevationOffset");
GVAR(Latitude) = -getNumber(configFile >> "CfgWorlds" >> worldName >> "latitude");
if (worldName in ["Chernarus", "Bootcamp_ACR", "Woodland_ACR", "utes"]) then { GVAR(Latitude) = 50; GVAR(Altitude) = 0; };
if (worldName in ["Altis", "Stratis"]) then { GVAR(Latitude) = 40; GVAR(Altitude) = 0; };