aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-15 08:48:24 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:43 +0200
commite71744b918898b98ffa5ae949fbf2a1b877b254c (patch)
tree0de31e6f86d5bfb9027ca4a0eb4494b059055721 /src/game.cpp
parent40e7a1a5c9155f40ed07e09658e677533cac33f9 (diff)
downloadminetest-e71744b918898b98ffa5ae949fbf2a1b877b254c.tar.gz
minetest-e71744b918898b98ffa5ae949fbf2a1b877b254c.tar.bz2
minetest-e71744b918898b98ffa5ae949fbf2a1b877b254c.zip
Modify mod and texture directory hierarchies
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 6c75863c0..fc87deb29 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -256,9 +256,9 @@ void draw_hotbar(video::IVideoDriver *driver, gui::IGUIFont *font,
/*
Draw hearts
*/
+ video::ITexture *heart_texture = tsrc->getTextureRaw("heart.png");
+ if(heart_texture)
{
- video::ITexture *heart_texture =
- driver->getTexture(getTexturePath("heart.png").c_str());
v2s32 p = pos + v2s32(0, -20);
for(s32 i=0; i<halfheartcount/2; i++)
{