mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -04:00
Webclient: Fix error messages getting cutoff (Thanks Vuruz)
This commit is contained in:
parent
1bcb0bfdab
commit
46b6679961
@ -428,8 +428,7 @@ cc_bool Platform_DescribeError(cc_result res, cc_string* dst) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EMSCRIPTEN_KEEPALIVE void Platform_LogError(const char* msg) {
|
EMSCRIPTEN_KEEPALIVE void Platform_LogError(const char* msg) {
|
||||||
/* no point showing more than 128 characters in chat */
|
cc_string str = String_FromReadonly(msg);
|
||||||
cc_string str = String_FromRaw(msg, 128);
|
|
||||||
Logger_WarnFunc(&str);
|
Logger_WarnFunc(&str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ static CC_INLINE BlockID World_GetBlock(int x, int y, int z) {
|
|||||||
return (BlockID)((World.Blocks[i] | (World.Blocks2[i] << 8)) & World.IDMask);
|
return (BlockID)((World.Blocks[i] | (World.Blocks2[i] << 8)) & World.IDMask);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define World_GetBlock(x, y, z) World_Blocks[World_Pack(x, y, z)]
|
#define World_GetBlock(x, y, z) World.Blocks[World_Pack(x, y, z)]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* If Y is above the map, returns BLOCK_AIR. */
|
/* If Y is above the map, returns BLOCK_AIR. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user