diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-18 19:04:02 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-18 19:04:02 -0700 |
commit | d2b804c1a817ccdd85b4b1220bf929e9d370d774 (patch) | |
tree | 35f82a41b5107802fab3bbca7b2a59f7a3271e18 /src/net | |
parent | d975741a095ae0dee82ff1dfdaa8e03439d7cf2b (diff) | |
download | mana-d2b804c1a817ccdd85b4b1220bf929e9d370d774.tar.gz mana-d2b804c1a817ccdd85b4b1220bf929e9d370d774.tar.bz2 mana-d2b804c1a817ccdd85b4b1220bf929e9d370d774.tar.xz mana-d2b804c1a817ccdd85b4b1220bf929e9d370d774.zip |
Fixed the NPC Integer input field, as well as cut some bull from the
NPC String class. The Integer input field was rather horribly broken to
the point where it could send invalid data, the increment and decrement
buttons didn't work, and overall it was tripping over itself. As for the
NPC String, "The Mana World" as a string is not needed to set the field
to that length, but instead fills the text field with that text for
starting. This is completely inappropriate for a text entry field, and a
more sensible default would be to leave it empty, so that people can
type in what they want without having to delete it.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/npchandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/npchandler.cpp b/src/net/npchandler.cpp index c597e31c..3cea2d64 100644 --- a/src/net/npchandler.cpp +++ b/src/net/npchandler.cpp @@ -90,7 +90,7 @@ void NPCHandler::handleMessage(MessageIn *msg) // Request for an integer id = msg->readInt32(); current_npc = dynamic_cast<NPC*>(beingManager->findBeing(id)); - npcIntegerDialog->prepDialog(0, 0, 2147483647); + npcIntegerDialog->setRange(0, 2147483647); npcIntegerDialog->setVisible(true); break; |