53 Commits

Author SHA1 Message Date
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 300df2ff60efe8385ebba8b05ce1992d9f254f67, reversing
changes made to 652e697bf8f1ea3598e10bddc026578a05c3fc0e.
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
UnknownShadow200
e9a717e226 Skip rendering entities that we can't see. 2016-05-10 21:57:55 +10:00
UnknownShadow200
b352f1c7c9 Fog calculation should use camera position instead of entity's head position, fixes #191. (Thanks goodlyay) 2016-05-08 13:31:31 +10:00
UnknownShadow200
7c88855491 More minor performance optimisations. 2016-04-26 12:19:29 +10:00
UnknownShadow200
634b3213c3 Modularise LocalPlayer.Physics into separate PhysicsComponent. 2016-03-31 21:25:25 +11:00
UnknownShadow200
dbc2311435 Modularise ray casting into its own file. 2016-03-31 19:53:33 +11:00
UnknownShadow200
d86f599a5d Modifiable liquids should affect all translucent blocks, translucent blocks should show as such in the block in hand, also fix seaming visibilities between translucent blocks on the outside of the map and inside it. 2016-03-29 20:32:09 +11:00
UnknownShadow200
7a2e5d6049 Organise most things into namespaces. 2016-03-27 09:33:51 +11:00
UnknownShadow200
4e9f92d378 Add giant model. (Thanks tornato) 2016-03-26 16:14:12 +11:00
UnknownShadow200
a78205c45a Add copyright notices to every source file. 2016-03-26 13:51:42 +11:00
UnknownShadow200
17f87dbbbb Left clicking outside table in block select screen should close it, also improve picking for map borders when outside the map. 2016-02-17 20:45:48 +11:00