summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-02-21 23:23:00 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-02-21 23:23:00 +0000
commit37ac254476b223e4be8b36bacdab8bc9626ad67a (patch)
tree000d2e99a83a0889012a7d0f36add5226d4b1e26
parent2c1e35d6a3b1450c13694bdca6539c285384af6f (diff)
downloadmana-client-37ac254476b223e4be8b36bacdab8bc9626ad67a.tar.gz
mana-client-37ac254476b223e4be8b36bacdab8bc9626ad67a.tar.bz2
mana-client-37ac254476b223e4be8b36bacdab8bc9626ad67a.tar.xz
mana-client-37ac254476b223e4be8b36bacdab8bc9626ad67a.zip
Showing a visible error message to the user when the font file fails to load.
-rw-r--r--ChangeLog5
-rw-r--r--src/gui/gui.cpp8
2 files changed, 7 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 18c10e31..7bf61480 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-02-21 Philipp Sehmisch <tmw@crushnet.org>
+ * src/gui/gui.cpp: Showing a visible error message to the user when
+ the font file can't be found.
+
+2008-02-21 Philipp Sehmisch <tmw@crushnet.org>
+
* data/items.xml: Gave the hair sprites and the player sprite the
item types "hairstyle" and "racesprite". added some missing item
types.
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 12936807..8f5ffd50 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -109,9 +109,7 @@ Gui::Gui(Graphics *graphics):
}
catch (gcn::Exception e)
{
- logger->log("Unable to load dejavusans.ttf: %s",
- e.getMessage().c_str());
- throw;
+ logger->error(std::string("Unable to load dejavusans.ttf: ") + e.getMessage());
}
// Set speech font
@@ -122,9 +120,7 @@ Gui::Gui(Graphics *graphics):
}
catch (gcn::Exception e)
{
- logger->log("Unable to load dejavusans.ttf: %s",
- e.getMessage().c_str());
- throw;
+ logger->error(std::string("Unable to load dejavusans.ttf: ") + e.getMessage());
}
gcn::Widget::setGlobalFont(mGuiFont);