destory != destroy

This commit is contained in:
[VB]AWOL
2013-10-31 11:59:03 -05:00
parent 81aab209b3
commit f8dde10b40
4 changed files with 62 additions and 3 deletions

View File

@@ -2,8 +2,8 @@ private ["_empty","_playerwasNearby","_character","_magazines","_force","_charac
_character = _this select 0;
// prevent sending more than 12 magazine items
_magazines = [(_this select 1),12] call array_reduceSize;
// prevent saving more than 20 magazine items
_magazines = [(_this select 1),20] call array_reduceSize;
//_force = _this select 2;
_forceGear = _this select 3;

View File

@@ -57,6 +57,7 @@ array_reduceSizeReverse = {
array_reduceSize = {
private["_array","_count","_num","_newarray","_startnum","_index"];
_array = _this select 0;
diag_log format ["array_reduceSize IN: %1", _array];
_newarray = [];
_count = _this select 1;
_num = count _array;
@@ -68,7 +69,9 @@ array_reduceSize = {
};
_array = _newarray;
};
diag_log format ["array_reduceSize OUT: %1", _array];
_array
};
vehicle_handleServerKilled = {