From 91cfbe2891a3fbec2aac019ccfba74b667d94fc4 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 26 Jun 2011 15:48:56 +0300 Subject: reorganized a lot of stuff and modified mapgen and objects slightly while doing it --- data/oerkki1.png | Bin 212 -> 250 bytes data/oerkki1_damaged.png | Bin 0 -> 341 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 data/oerkki1_damaged.png (limited to 'data') diff --git a/data/oerkki1.png b/data/oerkki1.png index c32fb99db..33cbac9e7 100644 Binary files a/data/oerkki1.png and b/data/oerkki1.png differ diff --git a/data/oerkki1_damaged.png b/data/oerkki1_damaged.png new file mode 100644 index 000000000..9b777387c Binary files /dev/null and b/data/oerkki1_damaged.png differ -- cgit v1.2.3 From ab0cc1bb4726a393a46f638b2de29b6569bbc9e5 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 27 Jun 2011 07:30:02 +0300 Subject: better handling of unknown blocks on client --- data/unknown_block.png | Bin 0 -> 582 bytes src/mapnode.cpp | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 data/unknown_block.png (limited to 'data') diff --git a/data/unknown_block.png b/data/unknown_block.png new file mode 100644 index 000000000..a27cb8ca9 Binary files /dev/null and b/data/unknown_block.png differ diff --git a/src/mapnode.cpp b/src/mapnode.cpp index dae21e7cc..7e2643987 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -138,6 +138,18 @@ void init_mapnode() f->tiles[j].material_type = initial_material_type; } + /* + 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++) + { + ContentFeatures *f = &g_content_features[i]; + f->setAllTextures("unknown_block.png"); + f->setInventoryTextureCube("unknown_block.png", "unknown_block.png", "unknown_block.png"); + f->dug_item = std::string("MaterialItem ")+itos(i)+" 1"; + } + /* Initialize mapnode content */ -- cgit v1.2.3