summaryrefslogtreecommitdiff
path: root/src/simpleanimation.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/simpleanimation.cpp
parent8d27447b01407d6605b1fed89fcd556572d8cfca (diff)
downloadmana-client-7729faaadff2e6f92d24f43e52d085f4b11be315.tar.gz
mana-client-7729faaadff2e6f92d24f43e52d085f4b11be315.tar.bz2
mana-client-7729faaadff2e6f92d24f43e52d085f4b11be315.tar.xz
mana-client-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/simpleanimation.cpp')
-rw-r--r--src/simpleanimation.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/simpleanimation.cpp b/src/simpleanimation.cpp
index db1c0c91..a75a3392 100644
--- a/src/simpleanimation.cpp
+++ b/src/simpleanimation.cpp
@@ -68,7 +68,7 @@ SimpleAnimation::SimpleAnimation(xmlNodePtr animationNode):
if (!img)
{
- logger->log("No image at index " + (index));
+ logger->log("No image at index %d", index);
continue;
}
@@ -91,8 +91,7 @@ SimpleAnimation::SimpleAnimation(xmlNodePtr animationNode):
if (!img)
{
- logger->log("No image at index " +
- (start));
+ logger->log("No image at index %d", start);
continue;
}