From fa85318e91ea9bbe4638092767b3b8e0ea64f57c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 21 May 2008 17:22:27 +0000 Subject: [FIX] Classes in pokemod will no longer emit a changed signal if not actually changed [FIX] Logic error with checking to see if certain GUI elements need resetting [FIX] Using activated rather than currentIndexChanged signals for combo boxes [FIX] Qt bugs now irrelevant git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@161 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/MapWildList.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'pokemod/MapWildList.cpp') diff --git a/pokemod/MapWildList.cpp b/pokemod/MapWildList.cpp index e9e7b71c..df47e517 100644 --- a/pokemod/MapWildList.cpp +++ b/pokemod/MapWildList.cpp @@ -107,9 +107,7 @@ void MapWildList::setControl(const int control) emit(error(bounds("control"))); return; } - m_control = control; - m_value = INT_MAX; - emit(changed()); + CHECK(control); } void MapWildList::setValue(const int value) @@ -127,8 +125,7 @@ void MapWildList::setValue(const int value) const ItemEffect* effect = item->effect(j); if ((effect->effect() == ItemEffect::E_Fish) && (effect->value2() == value)) { - m_value = value; - emit(changed()); + CHECK(value); return; } } @@ -170,8 +167,7 @@ void MapWildList::setScope(const int scope) const ItemEffect* effect = item->effect(j); if ((effect->effect() == ItemEffect::E_Scope) && (effect->value2() == scope)) { - m_scope = scope; - emit(changed()); + CHECK(scope); return; } } @@ -179,10 +175,7 @@ void MapWildList::setScope(const int scope) emit(error(bounds("value"))); } else - { - m_scope = scope; - emit(changed()); - } + CHECK(scope); } int MapWildList::control() const -- cgit