diff options
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/client/game_client.cpp | 7 | ||||
| -rw-r--r-- | src/game/mapres.h | 5 |
2 files changed, 11 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); diff --git a/src/game/mapres.h b/src/game/mapres.h index 1fc92edc..77a3ccaa 100644 --- a/src/game/mapres.h +++ b/src/game/mapres.h @@ -7,3 +7,8 @@ enum MAPRES_COLLISIONMAP=0x8003, MAPRES_TEMP_THEME=0x8fff, }; + +struct mapres_theme +{ + int id; +}; |