Fixes in options, hotkeys and viplist

This commit is contained in:
Eduardo Bart
2013-03-02 17:01:29 -03:00
parent 3ca85cbe87
commit 62921dee9b
10 changed files with 56 additions and 38 deletions

View File

@@ -1129,6 +1129,11 @@ void Game::removeVip(int playerId)
{
if(!canPerformGameAction())
return;
auto it = m_vips.find(playerId);
if(it == m_vips.end())
return;
m_vips.erase(it);
m_protocolGame->sendRemoveVip(playerId);
}

View File

@@ -349,11 +349,13 @@ void UIManager::importStyleFromOTML(const OTMLNodePtr& styleNode)
OTMLNodePtr oldStyle = m_styles[name];
// Warn about redefined styles
/*
if(!g_app.isRunning() && (oldStyle && !oldStyle->valueAt("__unique", false))) {
auto it = m_styles.find(name);
if(it != m_styles.end())
g_logger.warning(stdext::format("style '%s' is being redefined", name));
}
*/
if(!oldStyle || !oldStyle->valueAt("__unique", false) || unique) {
OTMLNodePtr originalStyle = getStyle(base);

View File

@@ -41,7 +41,7 @@ UITextEdit::UITextEdit()
m_maxLength = 0;
m_editable = true;
m_selectable = true;
m_autoScroll = false;
m_autoScroll = true;
m_changeCursorImage = true;
m_selectionReference = 0;
m_selectionStart = 0;