Commit Graph

4743 Commits

Author SHA1 Message Date
kwolekr 6c28863c37 Replace instances of std::map<std::string, std::string> with StringMap
Also, clean up surrounding code style
Replace by-value parameter passing with const refs when possible
Fix post-increment of iterators
2015-05-31 23:21:19 +10:00
rubenwardy eb4e791ea9 Add texture overriding 2015-05-31 23:21:17 +10:00
kwolekr a6835f98cf Fix build with libstdc++
libstdc++ doesn't include <cstring> inside of <string>, unlike libc++.
2015-05-31 23:21:15 +10:00
kwolekr 49087eab2f Split ObjDef/ObjDefManager out to objdef.cpp 2015-05-31 23:21:12 +10:00
est31 f9e1035882 Lower log level for unexpected behaviour
Its a possible mistake to log in to a server with twice the same name.
Before, it triggered a server wide error message, now it logs to actionstream.
2015-05-31 23:21:10 +10:00
est31 af1504efa3 Enforce hiding nametag
Work around irrlicht bug and hide nametag if its alpha is set to 0.
Thanks @TeTpaAka for pointing out workaround.
2015-05-31 23:21:01 +10:00
est31 efd52d6b53 Add more swp files to gitignore
Specifically, the added rule matches .kate-swp files.
2015-05-31 23:20:58 +10:00
est31 dc18ccbfd5 Make nametags white again
Commit 11a96e4901
commented out version parsing, resulting in the version byte being parsed as part of the color,
making nametags dark grey.
Re-introduces version parsing and ignores the packet if the version is more recent than ours,
fixing the unused variable warning (should have been done anyway).
2015-05-31 23:20:56 +10:00
kwolekr 522d9c8d73 Fix null dereference when loading schematic from definition without a NodeDefManager 2015-05-31 23:20:53 +10:00
kwolekr 19c0d3ac23 Record MapBlock modification reasons as flags instead of strings
This improves performance of MapBlock::raiseModified by a factor of 6.
Also, clean up mapblock.h a bit and inline small functions.
2015-05-31 23:20:51 +10:00
kwolekr ed06741a5c SAPI/Noise: Add PerlinNoiseMap:getMapSlice() function
This adds the ability to grab 'slices' of noise calculated by PerlinNoiseMap.
Retrieving smaller slices of noise from the computation result as needed
optimizes memory usage while maintaining a reasonable amount of CPU overhead.
2015-05-31 23:20:49 +10:00
paramat a4a5d42d49 Mapgen v5/v7: Detect sandstone, enable sandstone brick dungeons 2015-05-31 23:20:47 +10:00
kwolekr d4d8ef9618 Add optional buffer param for bulk data array writes in Lua 2015-05-31 23:20:45 +10:00
kwolekr 182a3d1978 Noise: Fix interpolation at negative coordinates 2015-05-31 23:20:43 +10:00
ShadowNinja 2142015720 Fix current mod name change missed during rebase 2015-05-31 23:20:39 +10:00
kwolekr 6e9f054982 Add -Wsign-compare for Clang builds and fix some signed/unsigned compiler warnings 2015-05-31 23:20:35 +10:00
kwolekr 9fac373dee SAPI: Accept either ARGB8 table or ColorString to specify colors 2015-05-31 23:20:32 +10:00
ShadowNinja 9cca4e1198 Add core.get_dir_list
Conflicts:
	builtin/mainmenu/tab_texturepacks.lua
2015-05-31 23:20:28 +10:00
ShadowNinja 8a6bb4f9cd Add core.request_insecure_environment() 2015-05-31 23:17:52 +10:00
ShadowNinja f91bc08c11 Add core.mkdir 2015-05-31 23:17:48 +10:00
ShadowNinja 794d3635d4 Add mod security
Due to compatibility concerns, this is temporarily disabled.
2015-05-31 23:17:44 +10:00
LeMagnesium 8edad2eb74 Added hour:minute format to time command
* The time command now accepts parameters in the form <hour>:<minute>,
    and if invoked with no parameters returns the current time in said format.

Conflicts:
	builtin/game/chatcommands.lua
2015-05-31 23:17:38 +10:00
est31 0dee615263 Fix build since last commit
Also rename method to better match what it does.
2015-05-31 23:16:31 +10:00
est31 8ee7998af0 Finalize init packets and enable protocol v25
This enables srp.
2015-05-31 23:16:28 +10:00
TeTpaAka b38548611d Add push_ARGB8 to script/common/c_converter 2015-05-31 23:16:25 +10:00
TeTpaAka 4069c91935 Generalize core.get/set_nametag_color into core.get/set_nametag_attributes 2015-05-31 23:16:23 +10:00
kwolekr 5cf162f942 Noise: Make buffer size parameters unsigned 2015-05-31 23:16:21 +10:00
kwolekr 32bcafb32f Schematics: Fix probability values for .mts version 1 2015-05-31 23:16:19 +10:00
Brandon 57ba33a389 Add minetest.register_on_punchplayer 2015-05-31 23:16:16 +10:00
TeTpaAka 0a6980819e Add get and set functions for the nametag color 2015-05-31 23:16:13 +10:00
Craig Robbins adf33efb97 ANDROID: Do not limit situations where fast is enabled
Before this commit autofast for Android was ignored if the user was sneaking, digging or building. There is no reason for this and it impedes movement control
2015-05-31 23:16:10 +10:00
est31 48db412bd5 Fix libgmp for Android
Android terminated immediately after start since commit
181f7baa45
because library wasn't loaded, and libminetest.so required
libgmp.so.10 instead of libgmp.so.

The second issue has been solved by the linker flags.
2015-05-31 23:16:07 +10:00
tenplus1 662028a68e Don't crash if an item gets dropped into unloaded space
Items dropped into unloaded map space will crash game so here's a fix...
2015-05-31 23:16:05 +10:00
est31 b0af15714c Item entity merging refactor
Don't ident too much, and add a comment.
2015-05-31 23:16:02 +10:00
est31 b1b5ed6ac8 Fix compiler warning about sign comparison 2015-05-31 23:16:00 +10:00
SmallJoker aee48a04d1 Build and link gmp correctly on MSVC
Also optimize json's library
2015-05-31 23:15:56 +10:00
Novatux 4135d7e9bd Add code to support raillike group names
Conflicts:
	builtin/game/misc.lua
2015-05-31 23:15:49 +10:00
est31 9e22a4a0d5 is_player() is no player-only function 2015-05-31 23:14:11 +10:00
paramat 4bc9ee34b4 Mapgen v5/6/7: Cleanup node resolver and aliases 2015-05-31 23:14:08 +10:00
est31 d39358f9d2 Make early protocol auth mechanism generic, and add SRP
Adds everything needed for SRP (and everything works too),
but still deactivated, as protocol v25 init packets aren't final yet.
Can be activated by changing the LATEST_PROTOCOL_VERSION header to 25
inside networkprotocol.h.
2015-05-31 23:14:05 +10:00
est31 8135f89e21 Add LibGMP
Uses system provided libgmp if found, if not it falls back to mini-gmp.

Conflicts:
	README.txt
	build/android/Makefile
2015-05-31 23:13:54 +10:00
Bektur Mambetov 6d9fe6e728 Optimization. Duplicate code in dialogs removed 2015-05-28 12:26:55 +03:00
berkut 456a0b4c26 instruction updated 2015-05-27 21:51:42 +03:00
Bektur Mambetov 3df382f825 transparent dialog. Some renaming. Preferene big optimization 2015-05-27 19:27:49 +03:00
Maksim Gamarnik c7b69b0483 Small change 2015-05-23 14:40:31 +03:00
OttoLidenbrock 3df9f38901 Update android makefile 2015-05-23 21:08:43 +10:00
OttoLidenbrock f783e6c573 rename games/MultiCraft_game/minetest.conf to games/MultiCraft_game/multicraft.conf 2015-05-23 20:52:43 +10:00
OttoLidenbrock 0c320aaff2 rename conf to multicraft.conf 2015-05-23 20:36:48 +10:00
OttoLidenbrock 5349ea0800 Only allow multicraft game as game 2015-05-23 13:15:05 +10:00
OttoLidenbrock 02848d189e Make armour HUD always show even if empty, and add game to master 2015-05-23 13:05:33 +10:00