mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 09:19:01 +00:00
Changed: Merge changes from next patch
This commit is contained in:
parent
6deae3686b
commit
dc66068f94
4 changed files with 14 additions and 1 deletions
|
@ -1267,6 +1267,12 @@ void CClientChatManager::updateChatModeAndButton(uint mode, uint32 dynamicChanne
|
||||||
const bool teamActive = pIM->getDbProp("SERVER:GROUP:0:PRESENT")->getValueBool();
|
const bool teamActive = pIM->getDbProp("SERVER:GROUP:0:PRESENT")->getValueBool();
|
||||||
const bool guildActive = pIM->getDbProp("SERVER:GUILD:NAME")->getValueBool();
|
const bool guildActive = pIM->getDbProp("SERVER:GUILD:NAME")->getValueBool();
|
||||||
|
|
||||||
|
if (m == CChatGroup::team && ! teamActive)
|
||||||
|
m = PeopleInterraction.TheUserChat.Filter.getTargetGroup();
|
||||||
|
|
||||||
|
if (m == CChatGroup::guild && ! guildActive)
|
||||||
|
m = PeopleInterraction.TheUserChat.Filter.getTargetGroup();
|
||||||
|
|
||||||
if (pUserBut)
|
if (pUserBut)
|
||||||
{
|
{
|
||||||
switch(m)
|
switch(m)
|
||||||
|
|
|
@ -382,7 +382,7 @@ void CChatTargetFilter::setTargetGroup(CChatGroup::TGroupType groupType, uint32
|
||||||
case CChatGroup::say: entry+="SAY"; break;
|
case CChatGroup::say: entry+="SAY"; break;
|
||||||
case CChatGroup::shout: entry+="SHOUT"; break;
|
case CChatGroup::shout: entry+="SHOUT"; break;
|
||||||
case CChatGroup::team: if(!teamActive) return; entry+="GROUP"; break;
|
case CChatGroup::team: if(!teamActive) return; entry+="GROUP"; break;
|
||||||
case CChatGroup::guild: if(!guildActive) return; entry+="CLADE"; break;
|
case CChatGroup::guild: entry+="CLADE"; break;
|
||||||
case CChatGroup::civilization: entry+="CIVILIZATION"; break;
|
case CChatGroup::civilization: entry+="CIVILIZATION"; break;
|
||||||
case CChatGroup::territory: entry+="TERRITORY"; break;
|
case CChatGroup::territory: entry+="TERRITORY"; break;
|
||||||
case CChatGroup::universe:
|
case CChatGroup::universe:
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include "group_html.h"
|
#include "group_html.h"
|
||||||
#include "../init_main_loop.h"
|
#include "../init_main_loop.h"
|
||||||
#include "inventory_manager.h"
|
#include "inventory_manager.h"
|
||||||
|
#include "../client_chat_manager.h"
|
||||||
|
|
||||||
#include "../connection.h"
|
#include "../connection.h"
|
||||||
#include "../entity_cl.h"
|
#include "../entity_cl.h"
|
||||||
|
@ -48,6 +49,7 @@ using namespace std;
|
||||||
using namespace NLMISC;
|
using namespace NLMISC;
|
||||||
|
|
||||||
extern CPeopleInterraction PeopleInterraction;
|
extern CPeopleInterraction PeopleInterraction;
|
||||||
|
extern CClientChatManager ChatMngr;
|
||||||
|
|
||||||
NLMISC_REGISTER_OBJECT(CViewBase, CDBGroupListAscensor, std::string, "list_sheet_guild");
|
NLMISC_REGISTER_OBJECT(CViewBase, CDBGroupListAscensor, std::string, "list_sheet_guild");
|
||||||
|
|
||||||
|
@ -539,6 +541,10 @@ void CGuildManager::closeAllInterfaces()
|
||||||
CGroupContainer *pGuildChat = dynamic_cast<CGroupContainer*>(pIM->getElementFromId(WIN_GUILD_CHAT));
|
CGroupContainer *pGuildChat = dynamic_cast<CGroupContainer*>(pIM->getElementFromId(WIN_GUILD_CHAT));
|
||||||
if (pGuildChat != NULL)
|
if (pGuildChat != NULL)
|
||||||
pGuildChat->setActive(false);
|
pGuildChat->setActive(false);
|
||||||
|
|
||||||
|
if (PeopleInterraction.TheUserChat.Filter.getTargetGroup() == CChatGroup::guild)
|
||||||
|
ChatMngr.updateChatModeAndButton(CChatGroup::say);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
|
@ -2956,6 +2956,7 @@ uint32 CGameItem::weight() const
|
||||||
case ITEMFAMILY::HARVEST_TOOL:
|
case ITEMFAMILY::HARVEST_TOOL:
|
||||||
case ITEMFAMILY::MISSION_ITEM:
|
case ITEMFAMILY::MISSION_ITEM:
|
||||||
case ITEMFAMILY::GENERIC_ITEM:
|
case ITEMFAMILY::GENERIC_ITEM:
|
||||||
|
case ITEMFAMILY::ITEM_SAP_RECHARGE:
|
||||||
return _Form->Weight;
|
return _Form->Weight;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue