aboutsummaryrefslogtreecommitdiff
path: root/src/settings_translation_file.cpp
Commit message (Expand)AuthorAge
* Remove "generate normal maps" feature (#10313)hecks2020-09-14
* Update minetest.conf.example, settings_translation_file.cppupdatepo.sh2020-06-13
* Update minetest.conf.example, settings_translation_file.cppupdatepo.sh2020-04-03
* Update translation sourcesrubenwardy2020-01-24
* Update translation stringsupdatepo.sh2019-10-12
* Update translation stringsupdatepo.sh2019-09-09
* Update minetest.conf.example and settings_translation_file.cpp (#8278)Paramat2019-02-23
* Remove 's' from 'automatic forwards' (#8272)ANAND2019-02-23
* Update minetest.conf.example, settings strings and locale files (#8230)Wuzzy2019-02-14
* Update minetest.conf.example and run updatepo.sh (#7947)Update Script2018-12-09
* Client-side autojump. Remove Android-only stepheight autojump (#7228)Ben Deutsch2018-11-22
* Settings: Fix indents, chat_message_*. Update translations (#7580)SmallJoker2018-07-25
* Update settings translationsSmallJoker2018-06-26
* Add crossview support (#7361)otdav332018-05-29
* Rewrite rendering engine (#6253)Vitaliy2017-10-31
* Add updated settings_translation_fileEsteban I. RM2017-10-17
* don't pass g_settings around, and use it directlyEsteban I. RM2017-10-17
* Regenerate minetest.conf.example and translation fileEsteban I. RM2017-10-17
* Real global textures (#6105)Vitaliy2017-10-15
* Remove DSTACK support (#6346)Loïc Blot2017-08-30
* New lighting curve (#5279)Vitaliy2017-08-17
* Remove remaining modstore code (#6120)Elijah Duffy2017-07-14
* Add a server-sided way to remove color codes from incoming chat messages (#5948)red-0012017-06-10
* Autorun: Change to 'autoforward' (#5926)Paramat2017-06-08
* Add configurable key bindings for hotbar scrolling, and for changing volume.Wuzzy2017-05-06
* Footsteps without view bobbing (#5645)Louis Pearson2017-04-25
* Run generate_from_settingtypes.luaEkdohibs2017-04-20
* Hard-coded undersampling.number Zero2017-04-09
* Add mesh generation delaynumber Zero2017-03-26
* Update minetest.conf.example and settings_translation_file.cppest312016-12-14
* Document keymap_autorun in settingtypes.txt and minetest.conf.example (#4486)Rui2016-08-30
* Update minetest.conf.example and settings_translation_file.cppest312016-08-30
* Tidy up generate_from_settingtypes.lua a bit.Tim2016-08-20
* Update minetest.conf.example and the settings translation fileest312016-07-24
* Update minetest.conf.example, and settings_translation_file.cppest312016-07-12
* Update settings translation file and minetest.conf.exampleest312016-05-05
* Settings_translation_file: Update mapgen with cave width parameterparamat2016-05-03
* Add option to disable entity selectionboxes. (#3992)TriBlade92016-04-14
* Allow NodeTimer, ABM and block mgmt interval changes.Auke Kok2016-03-19
* Add option to not send pre v25 init packetest312016-03-15
* Add options for screenshot format and qualityDiego Martinez2016-03-12
* Documentation: Auto-update conf.example and settings_translation_file.cppparamat2016-03-12
* Update po files, minetest.conf.example and settings_translation_file.cppest312016-02-27
* Remove preload_item_visuals codeRealBadAngel2016-02-21
* Fix some setting documentationest312015-12-10
* Update minetest.conf.example and src/settings_translation_file.cppest312015-11-08
* Escape " in generated settings_translation_file.cppPilzAdam2015-10-25
* Improve Lua settings menuPilzAdam2015-10-24
local function find_rtematch(routes, train) local default for rteid, route in ipairs(routes) do if route.ars then if route.ars.default then default = rteid else if il.ars_check_rule_match(route.ars, train) then return rteid end end end end return default end -- Checks whether ARS rule explicitly matches. This does not take into account the "default" field, since a wider context is required for this. -- Returns the rule number that matched, or nil if nothing matched function il.ars_check_rule_match(ars, train) if not ars then return nil end local line = train.line local routingcode = train.routingcode for arskey, arsent in ipairs(ars) do --atdebug(arsent, line, routingcode) if arsent.n then -- rule is inverse... if arsent.ln and (not line or arsent.ln ~= line) then return arskey elseif arsent.rc and (not routingcode or not string.find(" "..routingcode.." ", " "..arsent.rc.." ", nil, true)) then return arskey end return nil end if arsent.ln and line and arsent.ln == line then return arskey elseif arsent.rc and routingcode and string.find(" "..routingcode.." ", " "..arsent.rc.." ", nil, true) then return arskey end end return nil end function advtrains.interlocking.ars_check(sigd, train) local tcbs = il.db.get_tcbs(sigd) if not tcbs or not tcbs.routes then return end if tcbs.ars_disabled then -- No-ARS mode of signal. -- ignore... return end if tcbs.routeset then -- ARS is not in effect when a route is already set -- just "punch" routesetting, just in case callback got lost. minetest.after(0, il.route.update_route, sigd, tcbs, nil, nil) return end local rteid = find_rtematch(tcbs.routes, train) if rteid then --delay routesetting, it should not occur inside train step -- using after here is OK because that gets called on every path recalculation minetest.after(0, il.route.update_route, sigd, tcbs, rteid, nil) end end