Skip to content

Commit

Permalink
Merge pull request #16 from punkochel/master
Browse files Browse the repository at this point in the history
Added compatibility with open.mp
  • Loading branch information
ziggi authored Jan 20, 2023
2 parents 2bb1f96 + d3b0728 commit ba10083
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions foreach.inc
Original file line number Diff line number Diff line change
Expand Up @@ -688,15 +688,16 @@ Notes:

stock Iter_ScriptInit()
{
#if defined GetPlayerPoolSize
#if defined GetPlayerPoolSize && !defined _INC_open_mp && !defined _inc_fixes
new
LAST_PLAYER_ID = GetPlayerPoolSize() + 1,
LAST_VEHICLE_ID = GetVehiclePoolSize() + 1,
LAST_ACTOR_ID = GetActorPoolSize() + 1;
#else
#define LAST_PLAYER_ID MAX_PLAYERS
#define LAST_VEHICLE_ID MAX_VEHICLES
#define LAST_ACTOR_ID MAX_ACTORS
new
LAST_PLAYER_ID = MAX_PLAYERS,
LAST_VEHICLE_ID = MAX_VEHICLES,
LAST_ACTOR_ID = MAX_ACTORS;
#endif

#if FOREACH_I_Player || FOREACH_I_Bot || FOREACH_I_Character
Expand Down

0 comments on commit ba10083

Please sign in to comment.