summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);