diff options
author | Kahrl <kahrl@gmx.net> | 2011-09-19 03:01:11 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2011-09-19 03:01:11 +0200 |
commit | 36bcbca9acabbc47976d3d7625ffb1c9396b8fdc (patch) | |
tree | 25f4bf2dcba98871bb303cb77e0cf595ecadebab /src/player.cpp | |
parent | 4ed837bcfa2d9601c6b5c3d2e8d37ad9f5a6e2a6 (diff) | |
download | minetest-36bcbca9acabbc47976d3d7625ffb1c9396b8fdc.tar.gz minetest-36bcbca9acabbc47976d3d7625ffb1c9396b8fdc.tar.bz2 minetest-36bcbca9acabbc47976d3d7625ffb1c9396b8fdc.zip |
Added sprite extruder
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/player.cpp b/src/player.cpp index 03ae24f45..7cfdfebb6 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -309,31 +309,12 @@ LocalPlayer::LocalPlayer(): // Initialize hp to 0, so that no hearts will be shown if server // doesn't support health points hp = 0; - - // No tool wielded initially - wield = NULL; } LocalPlayer::~LocalPlayer() { } -void LocalPlayer::wieldItem(u16 item) -{ - m_selected_item = item; - - if(wield) { - InventoryItem* i = inventory.getList("main")->getItem(m_selected_item); - - if(i && strcmp(i->getName(), "ToolItem") == 0) { - wield->getMaterial(0).setTexture(0, i->getImageRaw()); - wield->setVisible(true); - } - else - wield->setVisible(false); - } -} - void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d, core::list<CollisionInfo> *collision_info) { |