mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Merge pull request #716 from Ignatz-HeMan/patch-1
Building Parts not delete when disallowed
This commit is contained in:
commit
5aae0aa1e2
@ -101,14 +101,7 @@ if (isText(_simulClassConfig)) then {
|
||||
_lastCheckTime = diag_tickTime;
|
||||
_rejectMove = !(EPOCH_target call EPOCH_isBuildAllowed);
|
||||
};
|
||||
if (_rejectMove) exitWith{
|
||||
// remove object and refund items
|
||||
deleteVehicle EPOCH_target;
|
||||
_removeParts = getArray(('CfgBaseBuilding' call EPOCH_returnConfig) >> _objType >> "removeParts");
|
||||
{
|
||||
[_x select 0,_x select 1] call EPOCH_fnc_addItemOverflow;
|
||||
} forEach _removeParts;
|
||||
};
|
||||
if (_rejectMove) exitWith { EPOCH_target = objNull; };
|
||||
_playerdistance = player distance EPOCH_target;
|
||||
if (_playerdistance < 10) then {
|
||||
_isSnap = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user