Advanced Ballistics - Fix _mapSize sometimes 0 by using engine command (#9394)

Update fnc_initializeTerrainExtension.sqf
This commit is contained in:
Pepijn Holster 2023-09-12 20:04:06 +02:00 committed by GitHub
parent 119702a189
commit ea783b6c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ if (!hasInterface) exitWith {};
if (!GVAR(enabled)) exitWith {};
private _initStartTime = diag_tickTime;
private _mapSize = getNumber (configFile >> "CfgWorlds" >> worldName >> "MapSize");
private _mapSize = worldSize;
if (("ace_advanced_ballistics" callExtension format["init:%1:%2", worldName, _mapSize]) == "Terrain already initialized") exitWith {
INFO_1("Terrain already initialized [world: %1]", worldName);