Cuberite Forum

Full Version: Random Chitchat 2017
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
This is what choked the compiler:
/** Template for the bindings for the DoWithXYZAt(X, Y, Z) functions that need to check their coords. */
template <
	class SELF,
	class ITEM,
	bool (SELF::*DoWithFn)(int, int, int, cItemCallback<ITEM> &),
	bool (SELF::*CoordCheckFn)(int, int, int) const = nullptr
>
static int DoWithXYZ(lua_State * tolua_S)
{
	...

I was hoping that this template would work with the old code that has no CoordCheckFn specification. So far the only solution I was able to find is to split the template definition into two - the old code without the CoordCheckFn, and a new one with CoordCheckFn that has no default. Seems to be working now, but I'm not too happy about the code duplication.
I think I've just fixed the longest-standing memory leak we've had. It could very well be the cause of the Gallery server's growing memory usage that we've been seeing.
https://github.com/cuberite/cuberite/pull/3794

This caused about 70 KiB of RAM leaked per server "ping".
"The Hidden Combination"

[Image: attachment.php?aid=748]
So your calculator has all the letters except for the T? I find that hard to believe Smile
(Also, welcome back)
Take your pick, I suppose.

[Image: attachment.php?aid=749]
Summer dance school, yay! Smile
https://youtu.be/W2w4veUv-Vc

You could do better screen capturing from the phone, but I even noticed a slight spike in the downloadsTongue but still nothing to he proud of
We were featured! yay!

It looks like the webadmin might need a viewport tag for mobile PCs.
Featured? Where? How?
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34