aboutsummaryrefslogtreecommitdiff
path: root/src/mapblock.h
AgeCommit message (Collapse)Author
2015-09-16Fix object position border checkingest31
Borders have to be converted into BS format in order to be accurately comparable to object positions.
2015-09-15Disallow placing entities outside safe boundariesest31
Entity positions are serialized as F1000. Disallow placing entities outside safe borders with the minetest.add_entity call. Note that this patch only enforces those boundaries for placing entities, moving entities that move outside boundaries aren't affected. Thanks to @nanepiwo for pointing this out.
2015-09-14Serialisation: documentation fixes, clarifying renames and whitespace fixesest31
1. Do two renames: * SER_FMT_CLIENT_VER_LOWEST -> SER_FMT_VER_LOWEST_WRITE * SER_FMT_VER_LOWEST -> SER_FMT_VER_LOWEST_READ Now the two define values are consistently named with the _WRITE defines SER_FMT_VER_{HIGHEST,LOWEST}_WRITE, and to better point out what the two serialisation versions actually are for. 2. wrap some lines in doc/worldformat.txt, and point out that the node timers are serialized at a later point, as this can cause confusion about what now happens (if one doesn't strictly read the if block's conditions). 3. some whitespace fixes in NodeTimerList::serialize, and one new comment.
2015-08-02Add map limit config optionrubenwardy
2015-07-29Precalculate mapblock relative size. This permit to remove many s16 calculs ↵nerzhul
on runtime
2015-05-31Mapblock: nodecount refactorest31
Spare direct multoplication, use constant MapBlock::nodecount instead of local nodecount variables. Also use strides at one place instead of multiplications.
2015-05-17Record MapBlock modification reasons as flags instead of stringskwolekr
This improves performance of MapBlock::raiseModified by a factor of 6. Also, clean up mapblock.h a bit and inline small functions.
2015-03-07For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins
NDEBUG is defined), replace those usages with persistent alternatives
2015-02-17Replace std::list by std::vector into ClientMap::updateDrawList, ↵Loic Blot
Map::timerUpdate and ServerMap::save(). This will speedup the loop reading into those functions
2015-01-27Fix a crash (assert) when client set serial version < 24 in INITLoic Blot
When SER_FMT_VER_LOWEST is set to zero, then the test is stupid in INIT because all client works. In mapblock we check if client's serialization version is < 24, but if client sent serialization version < 24 (15 for example) the server set it and tried to send nodes, then BOOM To resolve the problem: * Create a different CLIENT_MIN_VERSION to handle this problem * Remove the exception * Use an assert in case of bad developer code
2015-01-18Water fixesgregorycu
Change must_reflow to a deque Add overload for MapBlock::raiseModified that takes a const char*. This is a speed improvement. Comment out unused variable Optimisations to block offset calculations
2014-12-12Fix typo in mapblock.hCraig Robbins
2014-11-14Remove most exceptions from getNode() (and variants)Craig Robbins
2014-04-18Remove liquid_finite and weatherproller
2013-11-17Actually fix weatherkwolekr
The real problem was that MapBlocks were not activated before getting sent to the client
2013-09-16Weather: Clean up getHeat/getHumidity somewhatkwolekr
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-08-02Weather backward compatibilityproller
2013-07-27Weather supportproller
2013-03-11Migrate to STL containers/algorithms.Ilya Zhuravlev
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2012-09-04Reorganize ClientMap rendering code for a bit more performancePerttu Ahola
- Don't select blocks for drawing in every frame - Sort meshbuffers by material before drawing
2012-07-23Fix map deserialization and remove old serialization codePerttu Ahola
2012-07-23Implement node timersdarkrose
2012-06-17Optimize headersPerttu Ahola
2012-06-17Properly and efficiently use split utility headersPerttu Ahola
2012-06-05Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola
GPLv2/later, by agreement of major contributors
2012-06-03WIP node metadata, node timersKahrl
2012-03-29Reduce EnvRef:set_node() time tenfold by postponing the dayNightDiff update ↵Perttu Ahola
until it is actually needed
2012-03-15MapBlockMesh, mesh animation system, urgent mesh updates, athmospheric ↵Kahrl
light, removed footprints
2012-01-22Node placement / mineral / serialization / iron freq / node_dig callbackKahrl
- Node placement code moved to Lua - Mineral system removed (added default:stone_with_coal and default:stone_with_iron). - MapBlock and MapNode serialization updated. - Mapgen: Frequency of iron increased. - node_dig callback and related changes.
2012-01-12The huge item definition and item namespace unification patch (itemdef), see ↵Kahrl
http://c55.me/minetest/wiki/doku.php?id=changes:itemdef
2011-11-29Replace old active block random node modifying things with actual ↵Perttu Ahola
ActiveBlockModifiers
2011-11-29Add reason parameter to setModified and print it out to verbosestream when ↵Perttu Ahola
saving block
2011-11-29Node definition namesPerttu Ahola
2011-11-29GameDef compilesPerttu Ahola
2011-11-29Create framework for getting rid of global definitions of ↵Perttu Ahola
node/tool/item/whatever types
2011-11-29Allocate MapBlock::m_node_metadata on heap to allow less header bloatPerttu Ahola
2011-10-15mobv2Perttu Ahola
2011-10-12Saner block modification flag operation for not saving everything alwaysPerttu Ahola
2011-07-24Added a mapblock analyzing function for debugging use and fixed remaining ↵Perttu Ahola
mapgen bugs
2011-06-26more reorganizing of map codePerttu Ahola
2011-06-25New map generator added (and SQLite, messed up the commits at that time...) ↵Perttu Ahola
(import from temporary git repo)
2011-06-18Changed MapBlockObjects to be never written anymore. Incremented version number.Perttu Ahola
2011-06-17Moved stuff from mapblock{h,cpp} to mapblock_mesh.{h,cpp} and ↵Perttu Ahola
content_mapblock.{h,cpp}
2011-06-05tried to reduce unnecessary map saving disk i/o a bitPerttu Ahola
2011-05-22Preliminary "active block" stuff + set up test code to grow grass.Perttu Ahola
2011-04-10implemented rats in new system to verify that it worksPerttu Ahola
2011-04-10new object systemPerttu Ahola