Merge pull request #74 from ItsStev/business-production
Business production
This commit is contained in:
commit
142d75a759
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user