From 9c139f24af40f6eaefa3d1c248fb7c3eba01384c Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Wed, 19 Sep 2018 23:04:08 +1000 Subject: [PATCH] code error fix with pool --- gamemodes/irresistible/cnr/features/pool.pwn | 2 +- gamemodes/sf-cnr.pwn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/pool.pwn b/gamemodes/irresistible/cnr/features/pool.pwn index f98279d..902aa83 100644 --- a/gamemodes/irresistible/cnr/features/pool.pwn +++ b/gamemodes/irresistible/cnr/features/pool.pwn @@ -1356,7 +1356,7 @@ hook OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float: fX, Float: f poolball_index = GetPoolBallIndexFromModel( GetObjectModel( hitid ) ); if ( poolball_index != -1 ) { - foreach ( new poolid : pooltables ) if ( g_poolTableData[ poolid ] [ E_STARTED ] && ( g_poolBallData[ poolid ] [ E_POCKETED ] [ i ] || ! PHY_IsObjectMoving( g_poolBallData[ poolid ] [ E_BALL_OBJECT ] [ i ] ) ) ) { + foreach ( new poolid : pooltables ) if ( g_poolTableData[ poolid ] [ E_STARTED ] && ( g_poolBallData[ poolid ] [ E_POCKETED ] [ poolball_index ] || ! PHY_IsObjectMoving( g_poolBallData[ poolid ] [ E_BALL_OBJECT ] [ poolball_index ] ) ) ) { Pool_ResetBallPositions( poolid, poolball_index, poolball_index + 1 ); break; } diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index ebc4f9d..06fe1c9 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -16,7 +16,7 @@ #pragma option -d3 #pragma dynamic 7200000 -#define DEBUG_MODE +//#define DEBUG_MODE #if defined DEBUG_MODE #pragma option -d3