summaryrefslogtreecommitdiffstats
path: root/src/Physics (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-06-23fixed crash on lua DoExplosion callx12xx12x1-1/+1
2021-02-07Explodinator performance optimisationsTiger Wang1-4/+133
Thanks @lixfel (#4246)
2021-02-07Explodinator: fix divide by zeroTiger Wang2-13/+13
2021-02-07Fix #5118Tiger Wang1-2/+2
2020-12-21Comment and code style fixTiger Wang1-5/+5
+ Add static keyword - Don't capture everything in lambda
2020-12-19Trace to surface of cube.KingCol131-6/+6
2020-10-24TNT Changes (#4970)KingCol131-47/+68
+ Make TNT drop pickups, change a few comments. + Give each ray random intensity, instead of each explosion. * Use direction instead of destination, rewrite for pairs of edges.
2020-10-08Merged OnBreak with OnPlayerBreak (#4967)12xx122-19/+20
Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-6/+8
* Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-25Unify block entity pickup conversionTiger Wang1-4/+1
- Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-2/+2
* BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-09-12Use tracing for explosions (#4845)Tiger Wang3-0/+324
* TNT: Implement tracing algorithm + Add intensity tracing * Fix iterating over all players to SendExplosion, even those not in range * Implemented TNT entity interaction * Fixed misaligned destruction tracing * Finalise TNT algorithm - Remove BlockArea and just use chunks Using SetBlock makes it so that we can update everything properly, and does appear to be faster. * BlockInfo learns about explosion attentuation * Rename Explodinator parameters * TNT: pull block destruction into common function Co-authored-by: Alexander Harkness <me@bearbin.net>