projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe855e0
)
Fixed small error in mapnode.cpp (didn't cause any harm though)
author
Perttu Ahola
<celeron55@gmail.com>
Thu, 21 Jul 2011 22:37:21 +0000
(
01:37
+0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Thu, 21 Jul 2011 22:37:21 +0000
(
01:37
+0300)
src/mapnode.cpp
patch
|
blob
|
history
diff --git
a/src/mapnode.cpp
b/src/mapnode.cpp
index 391e593f9548b9715de7f733169e88a50eb44f78..b9dfd35b0c17a9a50f4fbc1a2eaa129464945f37 100644
(file)
--- a/
src/mapnode.cpp
+++ b/
src/mapnode.cpp
@@
-142,8
+142,10
@@
void init_mapnode()
Initially set every block to be shown as an unknown block.
Don't touch CONTENT_IGNORE or CONTENT_AIR.
*/
- for(u16 i=0; i<
=253
; i++)
+ for(u16 i=0; i<
256
; i++)
{
+ if(i == CONTENT_IGNORE || i == CONTENT_AIR)
+ continue;
ContentFeatures *f = &g_content_features[i];
f->setAllTextures("unknown_block.png");
f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";