mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-13 19:52:57 +03:00
Rename FNC_check_owner --> FNC_check_owner_friends
Use a more descriptive name for what it actually does now.
This commit is contained in:
@@ -15,7 +15,7 @@ _changecount = 0;
|
||||
|
||||
// Check is owner of the plot pole.
|
||||
|
||||
_isowner = [player, _plotpole] call FNC_check_owner;
|
||||
_isowner = [player, _plotpole] call FNC_check_owner_friends;
|
||||
_itemsExist = false;
|
||||
|
||||
if ((_isowner select 0 )) then {
|
||||
@@ -25,7 +25,7 @@ if ((_isowner select 0 )) then {
|
||||
_classname = typeOf _object;
|
||||
if (_classname in DZE_plotTakeOwnershipItems)then {
|
||||
|
||||
_isowner = [player, _object] call FNC_check_owner;
|
||||
_isowner = [player, _object] call FNC_check_owner_friends;
|
||||
diag_log text "Plot Take Ownership: Object in DZE_plotTakeOwnershipItems";
|
||||
|
||||
if !( _isowner select 0 ) then{
|
||||
|
||||
@@ -27,7 +27,7 @@ if(_IsNearPlot == 0) then {
|
||||
_canBuildOnPlot = true;
|
||||
} else {
|
||||
if (DZE_permanentPlot) then {
|
||||
_buildcheck = [player, _nearestPole] call FNC_check_owner;
|
||||
_buildcheck = [player, _nearestPole] call FNC_check_owner_friends;
|
||||
_isowner = _buildcheck select 0;
|
||||
_isfriendly = _buildcheck select 1;
|
||||
if (_isowner || _isfriendly) then {
|
||||
|
||||
@@ -26,7 +26,7 @@ if(_IsNearPlot == 0) then {
|
||||
_canBuildOnPlot = true;
|
||||
} else {
|
||||
if (DZE_permanentPlot) then {
|
||||
_buildcheck = [player, _nearestPole] call FNC_check_owner;
|
||||
_buildcheck = [player, _nearestPole] call FNC_check_owner_friends;
|
||||
_isowner = _buildcheck select 0;
|
||||
_isfriendly = _buildcheck select 1;
|
||||
if (_isowner || _isfriendly) then {
|
||||
|
||||
@@ -60,7 +60,7 @@ _nearestPole = _plotcheck select 2;
|
||||
|
||||
if(_IsNearPlot >= 1) then {
|
||||
// Since there are plot poles nearby we need to check ownership && friend status
|
||||
_buildcheck = [player, _nearestPole] call FNC_check_owner;
|
||||
_buildcheck = [player, _nearestPole] call FNC_check_owner_friends;
|
||||
_isowner = _buildcheck select 0;
|
||||
_isfriendly = _buildcheck select 1;
|
||||
if (!_isowner && !_isfriendly) then {
|
||||
|
||||
Reference in New Issue
Block a user