Merge pull request #74 from ItsStev/business-production

Business production
This commit is contained in:
Lorenc Pekaj 2019-09-16 12:00:42 +10:00 committed by GitHub
commit 142d75a759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,13 +219,6 @@ hook OnServerUpdate( )
// Replenish product
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
g_businessData[ businessid ] [ E_PROD_TIMESTAMP ] --;
@ -254,7 +247,6 @@ hook OnServerUpdate( )
// update label anyway
UpdateBusinessProductionLabel( businessid );
}
}
return 1;
}