Fixed leak global vars from convert client pos and extract role functions

This commit is contained in:
2026-05-24 02:58:32 -03:00
parent 2802f9cdc8
commit 7a1a4b7372
2 changed files with 12 additions and 8 deletions

View File

@@ -19,11 +19,15 @@
* Public: Yes
*/
params["_latitude", "_longitude", "_altitude"];
params [
["_latitude", 0, [0]],
["_longitude", 0, [0]],
["_altitude", 0, [0]]
];
_position = [_latitude, _longitude, _altitude];
private _position = [_latitude, _longitude, _altitude];
_realLocation = null;
private _realLocation = [0, 0, _altitude];
switch (toLower worldName) do {
case "altis": {