fix funding goal bug

This commit is contained in:
Lorenc Pekaj 2019-05-31 21:40:04 +10:00
parent 618aedc841
commit a97e30dfcc

View File

@ -212,7 +212,7 @@ thread OnGrabLatestDonor( hidden )
new Float: funding_goal = GetServerVariableFloat( "donation_goal_amount" ); new Float: funding_goal = GetServerVariableFloat( "donation_goal_amount" );
// make this optional // make this optional
if ( funding_goal <= 0.0 ) { if ( funding_goal > 0.0 ) {
new Float: funding_goal_percent = total_donations / funding_goal * 100.0; new Float: funding_goal_percent = total_donations / funding_goal * 100.0;
// Prevents total revenue for the month being disclosed mathematically // Prevents total revenue for the month being disclosed mathematically