diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-06-26 15:48:56 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-06-26 15:48:56 +0300 |
commit | 91cfbe2891a3fbec2aac019ccfba74b667d94fc4 (patch) | |
tree | 21ab12f020d71dc7c1534e16d2b295bdd322969e /src/game.cpp | |
parent | 3b098fd5dc1a3e05d671b3ec1a9acb20a036b88f (diff) | |
download | minetest-91cfbe2891a3fbec2aac019ccfba74b667d94fc4.tar.gz minetest-91cfbe2891a3fbec2aac019ccfba74b667d94fc4.tar.bz2 minetest-91cfbe2891a3fbec2aac019ccfba74b667d94fc4.zip |
reorganized a lot of stuff and modified mapgen and objects slightly while doing it
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index aa1cf4a70..59f14d37d 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -661,7 +661,9 @@ void the_game( screensize = driver->getScreenSize(); const s32 hotbar_itemcount = 8; - const s32 hotbar_imagesize = 36; + //const s32 hotbar_imagesize = 36; + //const s32 hotbar_imagesize = 64; + s32 hotbar_imagesize = 48; // The color of the sky @@ -967,6 +969,14 @@ void the_game( screensize = driver->getScreenSize(); v2s32 displaycenter(screensize.X/2,screensize.Y/2); //bool screensize_changed = screensize != last_screensize; + + // Resize hotbar + if(screensize.Y <= 600) + hotbar_imagesize = 32; + else if(screensize.Y <= 1024) + hotbar_imagesize = 48; + else + hotbar_imagesize = 64; // Hilight boxes collected during the loop and displayed core::list< core::aabbox3d<f32> > hilightboxes; |