aboutsummaryrefslogtreecommitdiff
path: root/src/debug.cpp
Commit message (Expand)AuthorAge
* Fix some misspellings (#8104)Paul Ouellette2019-01-16
* Remove DSTACK support (#6346)Loïc Blot2017-08-30
* Modernize src/c* src/d* and src/e* files (#6263)Loïc Blot2017-08-17
* C++11 patchset 9: move hardcoded init parameters to class definitions (part 1...Loïc Blot2017-06-16
* Remove threads.h and replace its definitions with their C++11 equivalents (#5...ShadowNinja2017-06-11
* Use C++11 mutexes only (remove compat code) (#5922)Loïc Blot2017-06-06
* Add server side ncurses terminalest312015-11-06
* Fix C++11 compatibilitykwolekr2015-10-31
* Refactor thread utility interfacekwolekr2015-10-16
* Refactor loggingShadowNinja2015-10-14
* Clean up threadingShadowNinja2015-08-23
* Fix MSVC compile errorShadowNinja2015-03-27
* Clean up and tweak build systemShadowNinja2015-03-27
* For usages of assert() that are meant to persist in Release builds (when NDEB...Craig Robbins2015-03-07
* Create minidump on fatal Win32 exceptionskwolekr2015-02-02
* Performance fixes.onkrot2015-01-13
* Add support for Android 2.3+sapier2014-06-29
* Cleanup jthread and fix win32 buildsapier2013-12-01
* Always use builtin JThread librarykwolekr2013-09-15
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
* Migrate to STL containers/algorithms.Ilya Zhuravlev2013-03-11
* Update Copyright YearsSfan52013-02-24
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
* Optimize headersPerttu Ahola2012-06-17
* Switch the license to be LGPLv2/later, with small parts still remaining as GP...Perttu Ahola2012-06-05
* Remove useless debug output (log at info level)Perttu Ahola2012-03-11
* Clean up log messages everywherePerttu Ahola2012-03-11
* Improve debug stack printing interfacePerttu Ahola2011-11-29
* Prevent threadid_t from losing precision when casted on 64bit systemsq662011-08-11
* fixed warnings reported by cppcheckPerttu Ahola2011-04-11
* fixes toward mingw compatibilityPerttu Ahola2011-02-10
* local game connects to 127.0.0.1 instead of localhost (windows returns an ipv...Perttu Ahola2011-02-08
* backing up some stuffPerttu Ahola2011-01-26
* Added a more flexible path system (and fixed some minor stuff)Perttu Ahola2011-01-07
* better debug output in segfaults and stack overflows in windowsPerttu Ahola2010-12-27
* some work-in-progressPerttu Ahola2010-12-22
* license stuff (more to come)Perttu Ahola2010-11-29
* Windows bug fixesPerttu Ahola2010-11-29
* Initial filesPerttu Ahola2010-11-27
conns, rail_y=advtrains.get_rail_info_at(pos) if not node_ok then minetest.chat_send_player(pname, S("Node is not a track!")) return end if advtrains.interlocking.db.get_tcb(pos) then advtrains.interlocking.show_tcb_marker(pos) return end -- create track section if aux1 button down local pc = player:get_player_control() local force_create = pc.aux1 local ts_id = advtrains.interlocking.db.check_and_repair_ts_at_pos(pos, nil, pname, force_create) if ts_id then advtrains.interlocking.db.update_rs_cache(ts_id) advtrains.interlocking.highlight_track_section(pos) else minetest.chat_send_player(pname, S("No track section at this location!")) end end minetest.register_craftitem("advtrains_interlocking:tool",{ description = S("Interlocking tool\nPunch: Highlight track section\nPlace: check route locks/show track section info"), groups = {cracky=1}, -- key=name, value=rating; rating=1..3. inventory_image = "at_il_tool.png", wield_image = "at_il_tool.png", stack_max = 1, on_place = function(itemstack, player, pointed_thing) local pname = player:get_player_name() if not pname then return end if not minetest.check_player_privs(pname, {interlocking=true}) then minetest.chat_send_player(pname, S("Insufficient privileges to use this!")) return end if pointed_thing.type=="node" then local pos=pointed_thing.under node_right_click(pos, pname, player) end end, on_use = function(itemstack, player, pointed_thing) local pname = player:get_player_name() if not pname then return end if not minetest.check_player_privs(pname, {interlocking=true}) then minetest.chat_send_player(pname, S("Insufficient privileges to use this!")) return end if pointed_thing.type=="node" then local pos=pointed_thing.under node_left_click(pos, pname, player) end end }) minetest.register_on_player_receive_fields(function(player, formname, fields) local pname = player:get_player_name() if not minetest.check_player_privs(pname, "interlocking") then return end local pos local pts = string.match(formname, "^at_il_rtool_(.+)$") if pts then pos = advtrains.decode_pos(pts) end if pos then if advtrains.is_passive(pos) then if fields.clear then ilrs.remove_route_locks(pts) end if fields.emplace then ilrs.add_manual_route_lock(pts, "Manual lock ("..pname..")") end end end end) minetest.register_craft({ output = "advtrains_interlocking:tool", type = "shapeless", recipe = {"dye:green","advtrains:trackworker", "advtrains_interlocking:tcb_node"} })