diff options
author | Kahrl <kahrl@gmx.net> | 2013-05-04 02:08:52 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-05-26 00:23:33 +0200 |
commit | 96fe1de8322a57ad82fcab3540c1eb44f74b9989 (patch) | |
tree | 44bc5db4e9d002f2a1fb6506db72e390cabae249 /src/game.cpp | |
parent | 730d316efe18c57760cd5ec518a6191ac271ce61 (diff) | |
download | minetest-96fe1de8322a57ad82fcab3540c1eb44f74b9989.tar.gz minetest-96fe1de8322a57ad82fcab3540c1eb44f74b9989.tar.bz2 minetest-96fe1de8322a57ad82fcab3540c1eb44f74b9989.zip |
Add ObjectRef.hud_set_hotbar_itemcount and add TOCLIENT_HUD_SET_PARAM
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 921cce327..4f0d1b663 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1987,7 +1987,7 @@ void the_game( { s32 wheel = input->getMouseWheel(); u16 max_item = MYMIN(PLAYER_INVENTORY_SIZE-1, - hud.hotbar_itemcount-1); + player->hud_hotbar_itemcount-1); if(wheel < 0) { @@ -2011,7 +2011,7 @@ void the_game( const KeyPress *kp = NumberKey + (i + 1) % 10; if(input->wasKeyDown(*kp)) { - if(i < PLAYER_INVENTORY_SIZE && i < hud.hotbar_itemcount) + if(i < PLAYER_INVENTORY_SIZE && i < player->hud_hotbar_itemcount) { new_playeritem = i; |