mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Minor code optimization
This commit is contained in:
@ -168,9 +168,8 @@ if (count GVAR(bulletDatabaseFreeIndices) > 0) then {
|
|||||||
|
|
||||||
{
|
{
|
||||||
_bulletDatabaseEntry = (GVAR(bulletDatabase) select _x);
|
_bulletDatabaseEntry = (GVAR(bulletDatabase) select _x);
|
||||||
_bullet = _bulletDatabaseEntry select 0;
|
if (!alive _bulletDatabaseEntry select 0) then {
|
||||||
_index = _bulletDatabaseEntry select 3;
|
_index = _bulletDatabaseEntry select 3;
|
||||||
if (!alive _bullet) then {
|
|
||||||
GVAR(bulletDatabaseOccupiedIndices) = GVAR(bulletDatabaseOccupiedIndices) - [_index];
|
GVAR(bulletDatabaseOccupiedIndices) = GVAR(bulletDatabaseOccupiedIndices) - [_index];
|
||||||
GVAR(bulletDatabaseFreeIndices) pushBack _index;
|
GVAR(bulletDatabaseFreeIndices) pushBack _index;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user