summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-16 20:43:05 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-16 20:43:05 +0300
commit381a271357c727df838ffe7958bf6ae16fd69804 (patch)
tree8ad1d9e05d7bc6b402ca31711309b649bd6eff8a /src/gui/npcdialog.cpp
parent44ca1b1c650e08e45de738b19513136e71e40349 (diff)
downloadmv-381a271357c727df838ffe7958bf6ae16fd69804.tar.gz
mv-381a271357c727df838ffe7958bf6ae16fd69804.tar.bz2
mv-381a271357c727df838ffe7958bf6ae16fd69804.tar.xz
mv-381a271357c727df838ffe7958bf6ae16fd69804.zip
fix code style.
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r--src/gui/npcdialog.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp
index 29d6383f9..576db564b 100644
--- a/src/gui/npcdialog.cpp
+++ b/src/gui/npcdialog.cpp
@@ -306,8 +306,7 @@ void NpcDialog::action(const gcn::ActionEvent &event)
{
std::string printText; // Text that will get printed
// in the textbox
-
- switch(mInputState)
+ switch (mInputState)
{
case NPC_INPUT_LIST:
{
@@ -366,6 +365,7 @@ void NpcDialog::action(const gcn::ActionEvent &event)
break;
}
+ case NPC_INPUT_NONE:
default:
break;
}
@@ -393,6 +393,8 @@ void NpcDialog::action(const gcn::ActionEvent &event)
case NPC_INPUT_ITEM:
mInventory->clear();
break;
+ case NPC_INPUT_NONE:
+ case NPC_INPUT_LIST:
default:
break;
}
@@ -414,6 +416,8 @@ void NpcDialog::action(const gcn::ActionEvent &event)
break;
case NPC_INPUT_STRING:
case NPC_INPUT_INTEGER:
+ case NPC_INPUT_LIST:
+ case NPC_INPUT_NONE:
default:
clearRows();
break;
@@ -430,6 +434,8 @@ void NpcDialog::action(const gcn::ActionEvent &event)
break;
case NPC_INPUT_STRING:
case NPC_INPUT_INTEGER:
+ case NPC_INPUT_NONE:
+ case NPC_INPUT_LIST:
default:
Net::getNpcHandler()->listInput(mNpcId, 255);
break;
@@ -785,6 +791,7 @@ void NpcDialog::buildLayout()
placeItemInputControls();
break;
+ case NPC_INPUT_NONE:
default:
break;
}