summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-03-22TNT position fixes (#4519)Mat1-2/+1
* TNT position fixes * Don't add offset to explosion spawn coords * Don't make other entities push TNT * Correct initial TNT speed * Fix typo * Improvements * Revert unwanted change * Style fixes * Update format
2019-08-11Fix building with clang 8.0 (#4346)Bond-0092-2/+2
2018-08-29Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell1014-17/+14
Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
2018-07-27cWorld: Manually bind deprecated broadcast functions (#4265)peterbell101-1/+1
Ref: https://github.com/cuberite/cuberite/pull/4264#discussion_r204769193
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102-2/+0
Add check for number of empty lines between functions and fix the corresponding failures
2018-07-25At long last... Piston animations!Tiger Wang2-27/+12
* Fixes #3198 * Fixes #57 (again lol)
2018-01-03Add the fmt library (#4065)peterbell101-0/+1
* 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.
2017-09-25cPressurePlateHandler: Fix uninitialised variables. (#4047)peterbell101-2/+2
2017-09-19Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly1-1/+1
* 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
2017-09-19Removed UTF-8 BOM (#4033)Lukas Pioch1-1/+1
2017-09-11Replace ItemCallbacks with lambdas (#3993)peterbell107-116/+36
2017-09-07Changed some int parameters to vector parameters (#3937)Bond-00920-87/+87
2017-09-02Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot7-36/+116
This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
2017-09-01Replace ItemCallbacks with lambdas (#3948)peterbell107-116/+36
2017-08-17Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly1-2/+2
2017-08-06Removed unneeded includes (#3902)Lukas Pioch2-3/+0
2017-08-03Remove double includes part 2 (#3890)peterbell102-2/+0
2017-07-17Allocate redstone component handlers upfrontpeterbell1022-299/+264
2017-05-21Clang 5.0 fixesLukas Pioch1-1/+1
- Added override keyword - Removed inherited member variables
2017-04-29Fix fence gates (#3683)Bond-0091-0/+5
This commit fixes an issue where a pressureplate would only open oak fence gates
2017-02-15Updated sounds and effect IDs (#3422)mathiascode2-2/+2
2016-12-06Fix comparator segfaultsMarvin Kopf1-1/+8
The handler would get called for any BlockEntity, but not every BlockEntity is a BlockEntityWithItems. Downcasting with static_cast is UB on fail.
2016-07-31Redstone fixes (#3285)Tiger Wang2-52/+86
* Comparators and pistons no longer update instantly * Fixes #3168. * Consolidated comparator code * As a result, fixed an issue where GetPowerLevel didn't consider block entities behind it (only GetFrontPowerLevel did)
2016-07-29Revert "Redstone fixes"Mattes D2-86/+52
2016-07-29Consolidated comparator codeTiger Wang1-46/+37
* As a result, fixed an issue where GetPowerLevel didn't consider block entities behind it (only GetFrontPowerLevel did)
2016-07-29Comparators and pistons no longer update instantlyTiger Wang2-12/+55
* Fixes #3168.
2016-07-18CMake: Remove needless minimum version specifications.Mattes D1-1/+0
2016-07-01Revert "Made redstone handlers static"Lukas Pioch2-93/+31
2016-06-15- Add a activation flag to droppers and dispensers. Previously droppers and dispensers shot items with every block update.QUSpilPrgm2-5/+28
- Fixes a range check inside cIncrementalRedstoneSimulator::Simulate
2016-05-28Don't let redstone blocks power adjacent blocks. (#3214)QUSpilPrgm2-3/+2
* Don't let redstone blocks power adjacent blocks. This fixes issue #2966
2016-05-28Made redstone handlers staticTiger Wang2-31/+93
* Improvements to performance? Maybe. Can't hurt (he says).
2016-02-09Update RedstoneSimulator to delete unused cached PowerDataMarvin Kopf2-1/+10
When a new block was placed that has a corresponding RedstoneHandler the PowerData for the position was cached, but never deleted and remained unchanged when the block got destroyed. The RedstoneSimulator now erases all cached PowerData for positions where the block doesn't have a RedstoneHandler (i.e. Air).
2016-02-05Bulk clearing of whitespaceLogicParrot2-3/+3
2016-01-11Fixed issue #2218Austin Martin1-3/+5
2016-01-01Renamed leftover strings to Cuberite / Server, as needed.Mattes D1-1/+1
Also upgraded the user setting file for MSVC to 2013.
2015-12-28Removed excessive logging in redstone simulator.Mattes D1-7/+0
2015-12-24Silenced the Redstone Simulator console spamSafwat Halaby17-20/+20
2015-12-24PF - "Special blocks" handlingSafwat Halaby4-4/+4
2015-12-19Fixes for clang-3.7Lukas Pioch4-6/+6
2015-12-18Reorganised the redstone simulatorTiger Wang24-0/+2195
-> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved