summaryrefslogtreecommitdiffstats
path: root/src/Simulator/FloodyFluidSimulator.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Always use relative coordinates in AddBlockTiger Wang2020-08-021-1/+1
| | | | | + Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available
* Using Super.Mattes D2020-04-161-1/+1
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-0/+1
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-23/+24
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-20/+10
|
* Add a formatting function for Vector3 (#4282)peterbell102018-09-241-25/+22
| | | | | | | | | | * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+1
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Broadcast refactor (#4264)peterbell102018-07-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions
* Add the fmt library (#4065)peterbell102018-01-031-18/+18
| | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
* Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly2017-09-191-6/+2
| | | | | | | | | | | | | | | | | | * Made BroadcastSoundEffect take vector parameters. * Added docs for new vectored methods * Removed old code * Fixed lua warnings * Made old BroadcastSoundEffect not an override. * m_Block to m_BlockPos, used Vector3d constructor where prettier. * a_Block to a_BlockPos * Changed thunderbolt a_Block to a_BlockPos
* Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-1/+1
|
* Updated sounds and effect IDs (#3422)mathiascode2017-02-151-2/+2
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-9/+9
|
* Updated old forum linksMathias2016-01-311-1/+1
|
* Moved variables into scope, removed unused variables and fixed variablesLukas Pioch2015-12-171-1/+1
|
* Now Water sources will also be created on top of existing water sources.bibo382015-07-151-3/+6
| | | | | See also on http://minecraft.gamepedia.com/Water#Source_blocks Fixes #2097
* Fix commentstycho2015-05-281-2/+6
|
* Made -Weverything an error.tycho2015-05-241-2/+12
|
* Removed wrong else clause, which caused that the following if-Statement got only executed in rare cases. This has blocked the creation of new Fluid-Sources. Bugfix #1783bibo382015-03-191-1/+2
|
* Fixed basic style.Mattes D2014-12-251-1/+1
|
* Removed unneeded newlinesIvan Đorđević2014-12-171-6/+0
|
* Merge branch 'master' of https://github.com/gushromp/MCServergushromp2014-12-161-0/+1
|\ | | | | | | | | Conflicts: src/Simulator/FloodyFluidSimulator.cpp
| * Fixed water from spreading on bottom of worldgushromp2014-12-161-5/+8
| |
* | Fixed water from spreading on bottom of worldgushromp2014-12-161-7/+11
|/
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-2/+2
|
* Removed more unessicary includesTycho2014-09-261-0/+1
|
* Basic style fixes.madmaxoft2014-07-171-5/+5
|
* Changed BroadcastSoundEffect function to take floating pos.Howaner2014-07-131-2/+2
|
* Fixed bad water/redstone simulator communicationTiger Wang2014-06-281-32/+22
| | | | * Fixes #713
* Fixed vanilla fluid simulator.madmaxoft2014-05-021-2/+2
| | | | Fixes #919.
* Added some commentsandrew2014-03-071-0/+2
|
* Fixed water/lava interactionandrew2014-03-071-2/+64
|
* Implemented vanilla-like fluid simulatorandrew2014-03-051-5/+18
|
* Changed Signiture of OnUpdateTycho2014-02-021-1/+7
|
* Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft2013-12-201-2/+2
|
* Fixed Floody lava to stone fizzleTiger Wang2013-12-101-2/+16
|
* Moved source to srcAlexander Harkness2013-11-241-0/+330