about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-09 16:39:37 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-09 16:39:37 +0000
commit7366995539f60d4dd3bd1cde99cfc4ce4292cbbe (patch)
tree9b26d0bbd55530334b41e4c6674c71726f6440cf /src/game/client
parentd689bd3c836a3d1b78c4a7a87c1bd01ff3f7664f (diff)
downloadzcatch-7366995539f60d4dd3bd1cde99cfc4ce4292cbbe.tar.gz
zcatch-7366995539f60d4dd3bd1cde99cfc4ce4292cbbe.zip
fixed so that diffrent maps can have diffrent backdrops
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/game_client.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp
index dbbc7631..3c3619c3 100644
--- a/src/game/client/game_client.cpp
+++ b/src/game/client/game_client.cpp
@@ -11,6 +11,7 @@ extern "C" {
 
 #include "../game.h"
 #include "../version.h"
+#include "../mapres.h"
 #include "mapres_image.h"
 #include "mapres_tilemap.h"
 #include "data.h"
@@ -1901,7 +1902,11 @@ void render_world(float center_x, float center_y, float zoom)
 	// draw the sun
 	if(config.gfx_high_detail)
 	{
-		if(1)
+		int id = 0;
+		mapres_theme *t = (mapres_theme *)map_find_item(MAPRES_TEMP_THEME, 0);
+		if(t)
+			id = t->id;
+		if(id == 1)
 		{
 			gfx_mapscreen(0,0,1,1);
 			gfx_texture_set(-1);