aboutsummaryrefslogtreecommitdiff
Commit message (Expand)AuthorAge
* Simplify how parseElement splits element string (#9726)Pierre-Yves Rollo2020-04-25
* Add server side translations capability (#9733)EvidenceB Kidscode2020-04-25
* Add LevelDB auth database. (#9476)luk3yx2020-04-23
* Camera: Fix shootline line offsets II (#9730)SmallJoker2020-04-23
* Android: add OpenGL ES 2 support (#9715)Maksim2020-04-22
* minetest.serialize: Reversible number serialization (#9722)HybridDog2020-04-22
* Fix configuration caching in log_deprecated (#9697)HybridDog2020-04-22
* Improve protocol-level receiving code (#9617)sfan52020-04-20
* Fix build badge since switching to github actionsLoïc Blot2020-04-20
* Replace travis with github actions (#9641)Loïc Blot2020-04-20
* Fix alias handling of get_content_id (#9712)sfan52020-04-19
* Reuse object_shader for "wielditem" and "item" entity drawtypes (#9537)Danila Shutov2020-04-19
* Shaders: Complete 478e753. OpenGL 4.3 compatiblitySmallJoker2020-04-18
* script: Move SAO usability check so that it covers all functions (#9698)sfan52020-04-18
* Formspec: allow lists to change size and existence while the formspec is open...DS2020-04-18
* Apply a scrollbar's default value to scroll containers (#9699)DS2020-04-18
* serverpackethandler: Reduce pkt->getPeerId() invocations and more (#9689)HybridDog2020-04-18
* Android: fix handling non-latin characters on older Android devices (#9309)Maksim2020-04-17
* Document which noise APIs add world seed to noiseparams seed (#9693)Paramat2020-04-17
* Rename "subgame" to "game" in 2 error messages (#9680)Wuzzy2020-04-17
* Add an option to disable unittest build, & disable them on Docker build (#9677)Loïc Blot2020-04-16
* Drop -Wabi useless flag (#9676)Loïc Blot2020-04-16
* Android: fix formspec input for AArch64 devices (#9685)Maksim2020-04-16
* Camera: Fix shooting line offsets (#9681)SmallJoker2020-04-16
* Swap out -ffast-math for a safe subset of optimization flags (#9682)sfan52020-04-16
* Optimize get_objects_inside_radius calls (#9671)Loïc Blot2020-04-16
* Android: add Android Studio support, completely redone java part (#9066)Maksim2020-04-15
* Fix parsing JSON with large integers (#9674)sfan52020-04-15
* Verify database connection on interval (#9665)Loïc Blot2020-04-15
* Add all src folders to doxygen (#9603)DS2020-04-14
* Update wireshark dissector (#9621)sfan52020-04-14
* scriptapi: Some small optimizations to value pushing (#9669)sfan52020-04-14
* PostgreSQL: Fix listAllLoadableBlocks returning the same blockSmallJoker2020-04-14
* Refactor texture overrides and add new features (#9600)Hugues Ross2020-04-14
* Remove sound menu and show proper msgs if sound is off (#9069)Wuzzy2020-04-13
* Add default stack size setting (#8873)SmallJoker2020-04-13
* Add scroll_container formspec element (redo) (#9101)DS2020-04-13
* GUIFormSpecMenu: Add basic element highlighing debug feature (#9423)SmallJoker2020-04-12
* Dockerfile: use alpine to reduce size (#9226)ㄗㄠˋ ㄑㄧˊ2020-04-12
* Update README copyright to current year (#9566)Testman2020-04-12
* Play 'player_jump' when player jumps (#9373)Wuzzy2020-04-12
* Fix delayed error message in start game tabrubenwardy2020-04-12
* Improve waypoints and add image variant (#9480)Lars Müller2020-04-11
* Formspecs: Add state-selection to style elements (#9378)Hugues Ross2020-04-11
* Fix broken config check in 659245asfan52020-04-11
* Update API site build (#9622)Paul Ouellette2020-04-11
* Implement DPI scaling for Windows (#9586)sfan52020-04-11
* Reduce ServerEnvironment propagation (#9642)Loïc Blot2020-04-11
* Drop content_sao.{cpp,h}Loic Blot2020-04-11
* Move PlayerSAO to dedicated filesLoic Blot2020-04-11
="hl opt">|| z == a.MaxEdge.Z) && oldlight != 0) { unlight_from[p] = oldlight; } } } SunlightPropagateResult propagateSunlight(VoxelManipulator &v, VoxelArea a, bool inexistent_top_provides_sunlight, std::set<v3s16> & light_sources, INodeDefManager *ndef) { // Return values bool bottom_sunlight_valid = true; // The full area we shall touch extends one extra at top and bottom VoxelArea required_a = a; required_a.pad(v3s16(0,1,0)); // Make sure we have access to it v.addArea(a); s16 max_y = a.MaxEdge.Y; s16 min_y = a.MinEdge.Y; for(s32 x=a.MinEdge.X; x<=a.MaxEdge.X; x++) for(s32 z=a.MinEdge.Z; z<=a.MaxEdge.Z; z++) { v3s16 p_overtop(x, max_y+1, z); bool overtop_has_sunlight = false; // If overtop node does not exist, trust heuristics if(!v.exists(p_overtop)) overtop_has_sunlight = inexistent_top_provides_sunlight; else if(v.getNodeRefUnsafe(p_overtop).getContent() == CONTENT_IGNORE) overtop_has_sunlight = inexistent_top_provides_sunlight; // Otherwise refer to it's light value else overtop_has_sunlight = (v.getNodeRefUnsafe(p_overtop).getLight( LIGHTBANK_DAY, ndef) == LIGHT_SUN); // Copy overtop's sunlight all over the place u8 incoming_light = overtop_has_sunlight ? LIGHT_SUN : 0; for(s32 y=max_y; y>=min_y; y--) { v3s16 p(x,y,z); MapNode &n = v.getNodeRefUnsafe(p); if(incoming_light == 0){ // Do nothing } else if(incoming_light == LIGHT_SUN && ndef->get(n).sunlight_propagates){ // Do nothing } else if(ndef->get(n).sunlight_propagates == false){ incoming_light = 0; } else { incoming_light = diminish_light(incoming_light); } u8 old_light = n.getLight(LIGHTBANK_DAY, ndef); if(incoming_light > old_light) n.setLight(LIGHTBANK_DAY, incoming_light, ndef); if(diminish_light(incoming_light) != 0) light_sources.insert(p); } // Check validity of sunlight at top of block below if it // hasn't already been proven invalid if(bottom_sunlight_valid) { bool sunlight_should_continue_down = (incoming_light == LIGHT_SUN); v3s16 p_overbottom(x, min_y-1, z); if(!v.exists(p_overbottom) || v.getNodeRefUnsafe(p_overbottom ).getContent() == CONTENT_IGNORE){ // Is not known, cannot compare } else { bool overbottom_has_sunlight = (v.getNodeRefUnsafe(p_overbottom ).getLight(LIGHTBANK_DAY, ndef) == LIGHT_SUN); if(sunlight_should_continue_down != overbottom_has_sunlight){ bottom_sunlight_valid = false; } } } } return SunlightPropagateResult(bottom_sunlight_valid); } } // namespace voxalgo