summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-10 17:48:27 +0000
committerIra Rice <irarice@gmail.com>2008-10-10 17:48:27 +0000
commit7729faaadff2e6f92d24f43e52d085f4b11be315 (patch)
tree282a8dd26928a0b71ee0262ff6c9f0e491708026 /src/being.cpp
parent8d27447b01407d6605b1fed89fcd556572d8cfca (diff)
downloadmana-7729faaadff2e6f92d24f43e52d085f4b11be315.tar.gz
mana-7729faaadff2e6f92d24f43e52d085f4b11be315.tar.bz2
mana-7729faaadff2e6f92d24f43e52d085f4b11be315.tar.xz
mana-7729faaadff2e6f92d24f43e52d085f4b11be315.zip
Did a little bit of code cleanup (mostly from TMW changes) as well as
properly implemented line wrapping. Now, there are no more visual artifacts for speech boxes, and it always chooses the most optimal box size (which required that npc_text use it also. Do any other gui classes use the textbox class?).
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 1d7f5ee7..a30bf465 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -443,9 +443,9 @@ void Being::drawSpeech(Graphics *graphics, int offsetX, int offsetY)
mSpeechBubble->setWindowName(mName);
// Not quite centered, but close enough. However, it's not too important to get
// it right right now, as it doesn't take bubble collision into account yet.
+ mSpeechBubble->setText( mSpeech );
mSpeechBubble->setPosition(px - (mSpeechBubble->getWidth() * 4 / 11), py - 70 -
(mSpeechBubble->getNumRows()*14));
- mSpeechBubble->setText( mSpeech );
mSpeechBubble->setVisible(true);
}
else if (mSpeechTime == 0)