[Bug 67594] can't buy houses anymore.

Mathieu Jobin <[email protected]> 12 Nov 2003 12:44:56 -0000
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=67594     




------- Additional Comments From [email protected]  2003-11-12 13:44 -------
         if (m_estate->isMortgaged())
         {
            rmbMenu->insertItem(i18n("Unmortgage"), 0);
            if (!m_estate->canToggleMortgage() || player->hasDebt())
               rmbMenu->setItemEnabled(0, false);
         }

I've try debugging this with kdbg, and it seems once you get in dept, you never go back to a normal state. once player->hasDebt() return true, it won't return false anymore... 

so, I guess the bug is when you get back to a no dept state.
The only call for setHasDept i've found is in player->hasDebt()

I dont know, but i think everytime to pay something. that means you are not in dept.

by the way... i think disabling "Unmortgage" and "Buy House" is useless.
if the guy is in dept... he won't have enough money to do it, the action will be simple refused. right ? why bother disabling that ?

but, the problem has to be fix anyway.