Commit graph

63 commits

Author SHA1 Message Date
UnknownShadow200
62f0ad560c move math stuff into client 2018-07-12 22:07:58 +10:00
UnknownShadow200
7ca1e00fcd minor code cleanup 2018-07-08 21:53:13 +10:00
UnknownShadow200
468e958e36 optimise collision detection a bit 2018-04-19 14:01:52 +10:00
UnknownShadow200
eac6ff191b bugfixes 2018-04-01 17:11:58 +10:00
UnknownShadow200
261f259277 remove some redundant code 2018-03-30 14:47:49 +11:00
UnknownShadow200
63b20880e8 use vtable for gui screen/widget 2018-03-28 18:43:04 +11:00
UnknownShadow200
474928ee8a Combine multiple C headers, get rid of some pointless includes 2018-03-28 15:02:16 +11:00
UnknownShadow200
30937e92f5 little bit less hardcoding 2018-03-20 16:54:48 +11:00
UnknownShadow200
12e274af77 Port Commands to C. (also use caseless equals more often) 2018-03-13 08:04:52 +11:00
UnknownShadow200
b04ff7333c Finish support for 10 bit blocks 2018-03-08 10:43:31 +11:00
UnknownShadow200
f84ba17d17 Add TotalMilliseconds() to C DateTime 2017-09-15 21:01:02 +10:00
UnknownShadow200
be641a682d Fix block picking of bedrock on map bottom, not working when map has a height of 1 block. 2017-09-15 18:17:35 +10:00
UnknownShadow200
c37c356d54 Optimise particle rendering to be 2-3x faster 2017-09-12 22:55:26 +10:00
UnknownShadow200
c23ba90c1f Make BlockInfo class static and break all plugins in the process. 2017-08-14 09:33:21 +10:00
UnknownShadow200
4459621057 Fix audio failing to play in windows 2000 VM, should hopefully address #463 2017-08-03 21:43:30 +10:00
UnknownShadow200
bee207138c Only pick a block if the intersection point is exactly within reach distance. Should address #461. 2017-08-02 20:06:01 +10:00
UnknownShadow200
1f45428ec7 Revert "Merge remote-tracking branch 'refs/remotes/origin/Snowy'"
This reverts commit 300df2ff60, reversing
changes made to 652e697bf8.
2017-06-25 17:54:02 +10:00
UnknownShadow200
59673aba3a Initial implementation 2017-06-25 17:07:12 +10:00
UnknownShadow200
5f5dd498e9 Remove pointless unused methods from Model classes. 2017-06-16 22:48:45 +10:00
UnknownShadow200
9016dc1e33 Port AABB to C. 2017-06-16 22:21:55 +10:00
UnknownShadow200
9e9cfae15f Forgot to include AABB.h 2017-05-20 15:10:41 +10:00
UnknownShadow200
d68d17eaa5 Revert last commit, that's not how original classic does it.
Also should have been || not &&
2017-03-03 19:43:02 +11:00
UnknownShadow200
27a2714619 Fix being unable to pick correct block when noclipping into it 2017-03-03 19:39:59 +11:00
UnknownShadow200
005d0cebe2 For the 0-1 people who bother, make 12 bit block ids as easy as a compile time switch. 2017-02-19 22:29:07 +11:00
UnknownShadow200
4f1f6f491d Fix compile errors 2017-02-16 16:32:53 +11:00
UnknownShadow200
c92ebcac6c Use BlockID typedef instead of hardcoding byte everywhere.
In the 0.00001% chance someone changes blockid to be 16 bits
2017-02-16 16:31:17 +11:00
UnknownShadow200
6ce84bc623 camera should not clip when NoClip is on 2017-02-09 12:27:26 +11:00
UnknownShadow200
42d1f63db7 get picking working with arbitary model rotation 2017-02-07 10:38:02 +11:00
UnknownShadow200
61ef392639 Optimise collision detection 2017-02-03 17:30:21 +11:00
UnknownShadow200
d947ac6988 Slightly less hardcoding 2017-02-01 17:36:09 +11:00
UnknownShadow200
55093847db initial entity rotation. breaks multiplayer. 2017-01-25 21:16:11 +11:00
UnknownShadow200
c35692a8c6 fix singleplayer cuboid 2017-01-23 15:06:27 +11:00
UnknownShadow200
4476b9c63d Inline performance hotspots in collision physics 2017-01-20 15:51:02 +11:00
UnknownShadow200
98d435b110 fix licensing 2017-01-20 09:12:04 +11:00
UnknownShadow200
e33d39685c Style: Make more code available to external plugins. 2016-12-03 19:26:38 +11:00
UnknownShadow200
1aef52fab2 Use standard indentation for everything. 2016-11-27 14:47:09 +11:00
UnknownShadow200
96710328a8 Core: Fix respawning in singleplayer sometimes putting you inside a block
also a minor touchup to reduce IModel code
2016-11-06 14:40:39 +11:00
UnknownShadow200
2fa379746a Style: Finish simplifying BlockInfo 2016-10-29 13:49:33 +11:00
UnknownShadow200
f9c0f75208 Client: Move searcher for block collisions into separate class. 2016-10-10 14:42:05 +11:00
UnknownShadow200
ab5ffd15de Client: Fix third person camera clipping to wrong place when standing next to a non-full cube block (Thanks Cheesse).
This also fixes a similiar issue with being unable to pick when standing next to a non-full cube block (Thanks goodlyay).
2016-09-22 17:02:25 +10:00
UnknownShadow200
1839da07b4 Client: Reduce code duplication in Picking.cs 2016-09-22 15:50:45 +10:00
UnknownShadow200
49a99f1a30 Client: Remove unused code. 2016-09-22 15:26:54 +10:00
UnknownShadow200
2a233d9b11 Fix z-fighting and picking issues with water/lava. 2016-07-08 14:47:00 +10:00
UnknownShadow200
1dd58bf874 Fix selection outline writing to depth buffer when it should not be. 2016-07-07 22:59:52 +10:00
UnknownShadow200
d6266ed61e Normalise line endings to end this madness. (Thanks Jjp137) 2016-06-11 17:56:37 +10:00
UnknownShadow200
e1d9b979cb Make water/lava be offset down by 1.5 pixels to match original classic. 2016-06-11 17:15:29 +10:00
UnknownShadow200
b2c642b8af Remove Block enum. 2016-06-11 15:29:45 +10:00
UnknownShadow200
97ff48e153 Fix respawning. (Thanks goodlyay) 2016-06-02 15:57:11 +10:00
UnknownShadow200
fe6dccc944 Reduce shadow alpha slightly (Thanks goodlyay). 2016-05-16 15:22:28 +10:00
UnknownShadow200
2717458067 Move everything to WorldEnv class. 2016-05-11 19:29:59 +10:00