aboutsummaryrefslogtreecommitdiff
path: root/src/minimap.cpp
Commit message (Collapse)AuthorAge
* Minimap: show player markersRealBadAngel2016-02-19
|
* Fix misc. MinGW and Valgrind warningskwolekr2015-11-08
|
* Refactor loggingShadowNinja2015-10-14
| | | | | | | | | - Add warning log level - Change debug_log_level setting to enumeration string - Map Irrlicht log events to MT log events - Encapsulate log_* functions and global variables into a class, Logger - Unify dstream with standard logging mechanism - Unify core.debug() with standard core.log() script API
* Clean up threadingShadowNinja2015-08-23
| | | | | | | | | | | | | | | | | | | | * Rename everything. * Strip J prefix. * Change UpperCamelCase functions to lowerCamelCase. * Remove global (!) semaphore count mutex on OSX. * Remove semaphore count getter (unused, unsafe, depended on internal API functions on Windows, and used a hack on OSX). * Add `Atomic<type>`. * Make `Thread` handle thread names. * Add support for C++11 multi-threading. * Combine pthread and win32 sources. * Remove `ThreadStarted` (unused, unneeded). * Move some includes from the headers to the sources. * Move all of `Event` into its header (allows inlining with no new includes). * Make `Event` use `Semaphore` (except on Windows). * Move some porting functions into `Thread`. * Integrate logging with `Thread`. * Add threading test.
* Fix intlGUIEditBox leak and uninitialized value in Mapper (reported by valgrind)Kahrl2015-08-10
|
* Fixed minimap memory leakBřetislav Štec2015-07-27
|
* Clean-up Minimap codekwolekr2015-07-08
| | | | | | | | | | | - Fixed race conditions - Fixed null dereference - Fixed out-of-bounds array access - MinimapMapblock is now allocated and added to update queue only when enabled - Removed dependency on LocalPlayer - Fixed code style - Simplified expressions and program logic - Cleaned minimap object interfaces
* Defer minimap update when shape changedest312015-06-30
|
* Add UpdateThread and use it for minimap and mesh threadsest312015-06-29
|
* Bugfix: minimap was updated only with loading new blocks, allow forced ↵RealBadAngel2015-06-28
| | | | updates with changing player pos
* Minimap updateRealBadAngel2015-06-28
|
* Remove busy polling inside minimap threadest312015-06-27
|
* Add minimap featureRealBadAngel2015-06-27
-- It's a liquid minetest.add_node(pointed_thing.under, {name=source}) end return {name="bucket:bucket_empty"} end }) end end minetest.register_craftitem("bucket:bucket_empty", { inventory_image = "bucket.png", stack_max = 1, liquids_pointable = true, on_use = function(itemstack, user, pointed_thing) -- Must be pointing to node if pointed_thing.type ~= "node" then return end -- Check if pointing to a liquid source n = minetest.get_node(pointed_thing.under) liquiddef = bucket.liquids[n.name] if liquiddef ~= nil and liquiddef.source == n.name and liquiddef.itemname ~= nil then minetest.add_node(pointed_thing.under, {name="air"}) return {name=liquiddef.itemname} end end, }) bucket.register_liquid( "default:water_source", "default:water_flowing", "bucket:bucket_water", "bucket_water.png" ) bucket.register_liquid( "default:lava_source", "default:lava_flowing", "bucket:bucket_lava", "bucket_lava.png" ) minetest.register_craft({ type = "fuel", recipe = "bucket:bucket_lava", burntime = 60, })