- Aug 12, 2015
-
-
est31 authored
Before, this lua code led to a crash: local pcg = PcgRandom(42) local value = pcg:next() This was because if you called s32 PcgRandom::range(min, max) with the minimum and maximum possible values for s32 integers (which the lua binding code did), u32 PcgRandom::range(bound) got called with 0 as the bound. The bound however is one above the maximum value, so 0 is a "special" value to pass to this function. This commit fixes the lua crash by assigning the RNG's full range to the bound 0, which is also fits to the "maximum is bound - 1" principle, as (u32)-1 is the maximum value in the u32 range.
-
- Aug 10, 2015
- Aug 09, 2015
-
-
rubenwardy authored
-
Loïc Blot authored
-
- Aug 07, 2015
-
-
Kahrl authored
-
- Aug 06, 2015
- Aug 05, 2015
-
-
RealBadAngel authored
-
- Aug 03, 2015
- Aug 02, 2015
-
-
Břetislav Štec authored
-
Miner59 authored
Before players "bounced" too high. Now, while still allowing to bounce, higher speed bounces are throttled.
-
Břetislav Štec authored
-
rubenwardy authored
-
Břetislav Štec authored
src/server.cpp src/emerge.cpp
-
Břetislav Štec authored
-
Břetislav Štec authored
-
kwolekr authored
Multiplying by a factor of 1/1000.f (rather than dividing by 1000.f) directly introduces an error of 1 ULP. With this patch, an exact comparison of a floating point literal with the deserialized F1000 form representing it is now guaranteed to be successful. In addition, the maxmium and minimum safely representible floating point numbers are now well-defined as constants.
-
kwolekr authored
-
- Aug 01, 2015
-
-
Břetislav Štec authored
-
Břetislav Štec authored
-
est31 authored
Before, android_version.h got changed at every new commit. Now, we only change it with new minetest releases. Analogous to how cmake does it, we add an android_version_githash.h file that communicates the git hash to C++ code. Also, unify VERS_MAJOR, VERS_MINOR and VERS_PATCH variable calculation inside the whole makefile.
-
kwolekr authored
-
paramat authored
-
- Jul 31, 2015
-
-
Loïc Blot authored
-> Remove the SendableMediaAnnouncement struct -> Forge the packet directly in the m_media loop, spare one loop and the construction of a vector -> Use preincrement to spare iterator copies
-
- Jul 29, 2015
-
-
est31 authored
Before, our libiconv build was a joke. We first called configure for our own build host system, then called make, before we executed a Android.mk script we provided as patch. The first "native make" always failed, and the LIBICONV_LIB file setting in our Makefile didn't match the built one, resulting in an always-rebuild of iconv. This commit cleans up this total mess, removes the double-build, and the Android.mk, and properly calls ./configure with the according target platform, and uses a built toolchain. As we have to deal with the android bug "NDK: Support for prebuild libs with full sonames" https://code.google.com/p/android/issues/detail?id=55868 as the 2013 patch https://lists.gnu.org/archive/html/libtool-patches/2013-06/msg00002.html by Google's David Turner wasn't inside the 2011 libtool, we pass -avoid-version to libtool. Thanks to the proper build, wide_to_utf8 works for android now, removing us of the need to disable it.
-
Loïc Blot authored
-
- Jul 27, 2015
-
-
Břetislav Štec authored
-
est31 authored
Thanks @Zeno-
-
est31 authored
-
- Jul 25, 2015
-
-
SmallJoker authored
-
Loïc Blot authored
-