From: Perttu Ahola Date: Thu, 21 Jul 2011 22:37:21 +0000 (+0300) Subject: Fixed small error in mapnode.cpp (didn't cause any harm though) X-Git-Tag: 0.2.20110731_3~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=329158f7d1ff7cf8e7bcc00489b5d922dcc129df;p=oweals%2Fminetest.git Fixed small error in mapnode.cpp (didn't cause any harm though) --- diff --git a/src/mapnode.cpp b/src/mapnode.cpp index 391e593f9..b9dfd35b0 100644 --- 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";