1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-26 07:00:25 -05:00

Convert remaining foreach loops

This commit is contained in:
Jbleezy
2023-03-01 23:16:15 -08:00
parent 4c94a0eb80
commit bccb0388f3
3 changed files with 5 additions and 24 deletions

View File

@ -33,13 +33,9 @@ treasure_chest_init( start_chest_name )
}
if ( (getDvar("g_gametype") == "zgrief" && getDvarIntDefault("ui_gametype_pro", 0)) || !level.enable_magic )
{
_a102 = level.chests;
_k102 = getFirstArrayKey( _a102 );
while ( isDefined( _k102 ) )
foreach (chest in level.chests)
{
chest = _a102[ _k102 ];
chest maps\mp\zombies\_zm_magicbox::hide_chest();
_k102 = getNextArrayKey( _a102, _k102 );
}
return;
}