Pink Petal Games

Feedback => Bugs and Game balancing => Topic started by: tlib on May 01, 2010, 11:36:47 AM

Title: Minor Income bug in cBrothel.cpp
Post by: tlib on May 01, 2010, 11:36:47 AM
Hi,

I won't claim to have found this bug as that would be a lie.

Currently any Girls that don't have any money of their own don't get any income.

This is because in cBrothel.cpp under CalculatePay subroutine there is the following code

Code: [Select]
if(girl->m_Money <= 0)
{
if(girl->m_Money < 0)
girl->m_Money = 0;
return;
}

This code should finish the subroutine if there is no pay but instead it finished the routine if the girl has no money.

The code should be:
Code: [Select]
if(girl->m_Pay <= 0)
{
if(girl->m_Pay < 0)
girl->m_Pay = 0;
return;
}

Please can one of the developers update it.

Thanks,

Tlib
Title: Re: Minor Income bug in cBrothel.cpp
Post by: Dagoth on May 03, 2010, 05:17:12 AM
Thanks, I'll go ahead and commit this fix to SVN.
Title: Re: Minor Income bug in cBrothel.cpp
Post by: Gummie on May 03, 2010, 10:38:33 PM
How can i fix this, i cant find the file.
Title: Re: Minor Income bug in cBrothel.cpp
Post by: Dagoth on May 04, 2010, 08:59:26 AM
You'd need the source from SVN. For that matter, a C++ compiler and the knowledge of how to compile the source.