mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix snap build errors
@raymix in most of your helper functions you are using exitWith {}; in
the same way the main player_build uses it. The problem is exitWith
inside of a called function only exits that function, not the parent
script it was called from.
When a helper function exits the main script continues on with undefined
variables and other problems. The easiest solution was to just remove
these helper functions for now. I just directly substituted their code
back into the main modular_build file and removed the passes to and from
them.
We should consolidate player_build and modular_build into one file first
since they are about 80% identical. After that we need to integrate
plot4life. Dividing player_build up into smaller sub functions like this
can be left for last.
I tested this thoroughly and can confirm the undefined errors are fixed
now.
This commit is contained in:
@@ -560,9 +560,6 @@ if (isNil "DZE_modularBuild") then {
|
||||
if (isNil "DZE_snapExtraRange") then {
|
||||
DZE_snapExtraRange = 0;
|
||||
};
|
||||
if (isNil "DZE_checkNearbyRadius") then {
|
||||
DZE_checkNearbyRadius = 30;
|
||||
};
|
||||
if (isNil "DZE_RestrictSkins") then {
|
||||
DZE_RestrictSkins = [];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user