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:
parent
cb0df8783a
commit
a993f2d5f1
@ -168,9 +168,8 @@ if (count GVAR(bulletDatabaseFreeIndices) > 0) then {
|
||||
|
||||
{
|
||||
_bulletDatabaseEntry = (GVAR(bulletDatabase) select _x);
|
||||
_bullet = _bulletDatabaseEntry select 0;
|
||||
_index = _bulletDatabaseEntry select 3;
|
||||
if (!alive _bullet) then {
|
||||
if (!alive _bulletDatabaseEntry select 0) then {
|
||||
_index = _bulletDatabaseEntry select 3;
|
||||
GVAR(bulletDatabaseOccupiedIndices) = GVAR(bulletDatabaseOccupiedIndices) - [_index];
|
||||
GVAR(bulletDatabaseFreeIndices) pushBack _index;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user