summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/main.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2deff5f0..1b36139d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2006-10-28 Björn Steinbrink <B.Steinbrink@gmx.de>
+ * src/main.c: Reload wallpaper after updates are fetched.
* data/graphics/sprites/Makefile.am: Added monster20.
2006-10-28 Philipp Sehmisch <tmw@crushnet.org>
diff --git a/src/main.cpp b/src/main.cpp
index 08fc7a56..82620c05 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -607,6 +607,10 @@ int main(int argc, char *argv[])
{
case UPDATE_STATE:
loadUpdates();
+ // Reload the wallpaper in case that it was updated
+ login_wallpaper->decRef();
+ login_wallpaper = ResourceManager::getInstance()->
+ getImage("graphics/images/login_wallpaper.png");
break;
// Those states don't cause a network disconnect