Update business.pwn

This commit is contained in:
Stev 2019-08-26 21:15:52 +01:00
parent dbd9c9a2fd
commit d13152e84d

View File

@ -219,13 +219,6 @@ hook OnServerUpdate( )
// Replenish product // Replenish product
foreach ( new businessid : business ) if ( g_businessData[ businessid ] [ E_PROD_TIMESTAMP ] ) foreach ( new businessid : business ) if ( g_businessData[ businessid ] [ E_PROD_TIMESTAMP ] )
{
new
members = 0;
GetOnlineBusinessAssociates( businessid, members );
if ( members )
{ {
// reduce business production time by a second // reduce business production time by a second
g_businessData[ businessid ] [ E_PROD_TIMESTAMP ] --; g_businessData[ businessid ] [ E_PROD_TIMESTAMP ] --;
@ -254,7 +247,6 @@ hook OnServerUpdate( )
// update label anyway // update label anyway
UpdateBusinessProductionLabel( businessid ); UpdateBusinessProductionLabel( businessid );
} }
}
return 1; return 1;
} }