devolution

Author Topic: Your Daugher Bug Fix  (Read 3275 times)

0 Members and 1 Guest are viewing this topic.

Offline tlib

  • Newbie
  • *
  • Posts: 6
Your Daugher Bug Fix
« on: May 08, 2010, 12:32:30 PM »
Hi,

I've been looking at why "Your Daughter" seems to vanish after several weeks.

It's due to it being set as a temporary trait so girls lose "Your Daughter" trait after 20 weeks.

Fix is simple.

in cGirls.cpp lines 4046 and 4069 (Rev 348) change from:
Code: [Select]
sprog->add_trait("Incest");
to:
Code: [Select]
sprog->add_trait("Incest",false);

and line 4059 (Rev 348) change from:
Code: [Select]
sprog->add_trait("Your Daughter");
to:
Code: [Select]
sprog->add_trait("Your Daughter",false);


Tlib

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: Your Daugher Bug Fix
« Reply #1 on: May 08, 2010, 01:08:46 PM »
Nice catch, I'll add it in my next commit.

Offline tlib

  • Newbie
  • *
  • Posts: 6
Re: Your Daugher Bug Fix
« Reply #2 on: May 08, 2010, 04:18:48 PM »
Hi

Just spotted a bug in AddTraits

in cGirls.cpp Line 729 (rev 348) should be a "break" not "return" as currently it skips the sanity checks.


Tlib

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: Your Daugher Bug Fix
« Reply #3 on: May 08, 2010, 08:45:28 PM »
Hi

Just spotted a bug in AddTraits

in cGirls.cpp Line 729 (rev 348) should be a "break" not "return" as currently it skips the sanity checks.


Tlib
Should be handled by WonderDog's patch here, which isn't on SVN yet:
http://pinkpetal.org/index.php?topic=352.msg6457#msg6457