fix: misc bugs
fixes: - f3 menu outside world border - control type being affected by seemingly random oddities - bedrock glitch in low y levels (thanks tranq)
This commit is contained in:
@@ -604,7 +604,7 @@ int CompressedTileStorage::get(int x, int y, int z)
|
||||
|
||||
int block, tile;
|
||||
getBlockAndTile( &block, &tile, x, y, z );
|
||||
if (blockIndices[block] == 0) return 0;
|
||||
// if (blockIndices[block] == 0) return 0; FIX: ghost blocks in the bedrock layer (thanks tranq)
|
||||
int indexType = blockIndices[block] & INDEX_TYPE_MASK;
|
||||
|
||||
if( indexType == INDEX_TYPE_0_OR_8_BIT )
|
||||
|
||||
@@ -81,8 +81,12 @@ const char *wstringtofilename(const wstring& name)
|
||||
#else
|
||||
if(c=='/') c='\\';
|
||||
#endif
|
||||
assert(c<128); // Will we have to do any conversion of non-ASCII characters in filenames?
|
||||
buf[i] = static_cast<char>(c);
|
||||
// assert(c<128); // Will we have to do any conversion of non-ASCII characters in filenames?
|
||||
if (c >= 128) {
|
||||
printf("Non-ASCII character in filename: %lc\n", c);
|
||||
c = '?';
|
||||
}
|
||||
// buf[i] = static_cast<char>(c); does nothing
|
||||
buf.push_back(static_cast<char>(c));
|
||||
}
|
||||
return buf.c_str();
|
||||
|
||||
Reference in New Issue
Block a user