Author Topic: Minor Income bug in cBrothel.cpp  (Read 2765 times)

0 Members and 1 Guest are viewing this topic.

Offline tlib

  • Newbie
  • *
  • Posts: 6
Minor Income bug in cBrothel.cpp
« 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

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: Minor Income bug in cBrothel.cpp
« Reply #1 on: May 03, 2010, 05:17:12 AM »
Thanks, I'll go ahead and commit this fix to SVN.

Offline Gummie

  • Newbie
  • *
  • Posts: 2
Re: Minor Income bug in cBrothel.cpp
« Reply #2 on: May 03, 2010, 10:38:33 PM »
How can i fix this, i cant find the file.

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: Minor Income bug in cBrothel.cpp
« Reply #3 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.