Commit Graph

45 Commits

Author SHA1 Message Date
Phillip Stephens a8d8eb0dde
Fix IGetAreaId and rename GetAreaId to GetAreaIndex 2020-10-20 03:03:11 -07:00
Lioncash 269b28f391 CScriptDoor: Brace conditionals where applicable 2020-05-07 13:38:20 -04:00
Lioncash 554893ef85 RuntimeCommonB: Make use of bitfield initializers where applicable
Given that we now target C++20, we can make use of bitfield initializers
where applicable.
2020-04-20 15:57:25 -04:00
Lioncash cabbfcc320 CActor: Make AddToRenderer() non-const
This member function alters instance state in a few implementations, so
it shouldn't be made const.

The state manager parameter also shouldn't be const. Retrieved data
from the post constructed instance is further modified in some
implementations. This removes the constness on this parameter in order
to fix more const_cast usages in a follow-up change.
2020-04-06 00:52:10 -04:00
Lioncash 47555c725b CAutoMapper: Eliminate usages of const_cast
Same behavior, but makes it explicit from the interface that
modifications are clearly going on from within the class.
2020-03-31 06:57:07 -04:00
Lioncash 3147d39cd9 CScript*: Return std::nullopt in GetTouchBounds()
In some implementations, returning via default construction for
std::optional can cause the entire inner buffer to be zeroed out.

Returning with std::nullopt causes only the internal validity flag to be
set and nothing more.
2020-02-01 01:06:43 -05:00
Lioncash 221cc5c6b8 RuntimeCommonB: Normalize cpp file includes
Like the prior changes normalizing the inclusions within headers, this
tackles the cpp files of the RuntimeCommonB target, making these source
files consistent with their headers.
2019-12-22 18:12:04 -05:00
Phillip Stephens 68e2fad74f
Fix TCastTo.hpp inclusions, add comment to warn against modifying include path 2019-09-21 06:07:13 -07:00
Lioncash afab3e0327 Runtime: Make const/non-const getters have the same name
Makes for a more consistent interface, as getters won't have different
names to remember based off whether or not they're const qualified.
2019-08-14 12:45:57 -04:00
Lioncash d3d629d405 RuntimeCommon: Use const on member functions where applicable
Adds missing const qualifiers on class member functions that don't
modify instance state.
2019-08-14 09:25:39 -04:00
Jack Andersen 77af3f0ebd CPuddleToadGamma and animation system fixes 2019-06-20 20:02:56 -10:00
Jack Andersen e218b8aeb5 CActorContraption fixes, better CMake dependency handling 2019-06-11 16:05:17 -10:00
Jack Andersen ad2681f857 Windows fixes 2019-01-28 22:28:35 -10:00
Jack Andersen 636c82a568 New code style refactor 2018-12-07 19:30:43 -10:00
Jack Andersen 427f5d8786 Various bug fixes 2018-10-26 20:16:12 -10:00
Jack Andersen 5a60a0acfc Amuse API changes 2018-08-27 19:44:16 -10:00
Jack Andersen ef1f9d564c Big Door initial animation fix 2018-06-29 15:35:43 -10:00
Jack Andersen 3a9e7b2f9b PVS and DCLN bug fixes 2018-06-27 20:47:34 -10:00
Jack Andersen 1ada86cc03 Vulkan fixes 2018-05-21 21:51:08 -10:00
Jack Andersen f6259cc8c6 Remove recursion depth check 2018-05-19 20:23:13 -10:00
Jack Andersen 13747ff61f Merge branch 'master' of ssh://git.axiodl.com:6431/AxioDL/urde 2018-05-19 20:15:22 -10:00
Jack Andersen f60af632b3 Big fixes and big memory leak refactor (linux only for now) 2018-05-19 20:14:57 -10:00
Phillip Stephens d2c2af326d Minor fixes to CScriptDoor 2018-05-19 14:14:37 -07:00
Jack Andersen 5f03362149 More bug fixes 2018-05-18 19:16:08 -10:00
Jack Andersen 317aa9af25 Finish CScriptPlayerActor 2018-05-13 18:38:58 -10:00
Phillip Stephens f5ea144b47 Various level streaming fixes, remove support for uncooked rep 2018-05-06 17:47:40 -07:00
Phillip Stephens 734b25cad3 Fix doors and various area streaming bugs 2018-05-01 17:43:31 -07:00
Phillip Stephens 711c3e0d2c Remove rstl::optional_object, various cleanups, implement CExplosion and CScriptDoor 2018-04-29 20:12:41 -07:00
Jack Andersen 083571e693 Work on CGameProjectile 2018-02-08 21:12:26 -10:00
Jack Andersen f7ec7bdc0c string_view refactor 2017-11-12 20:19:18 -10:00
Jack Andersen 4af2d975f4 Finish CBallCamera 2017-10-15 19:26:50 -10:00
Jack Andersen 4c83f521a8 Add CBallCamera stubs, more implementations 2017-10-08 16:41:50 -10:00
Jack Andersen e25d2a423d Nearly finish CScriptWater 2017-08-12 21:56:35 -10:00
Jack Andersen da91c921cb Bitfield initializer bug fixes 2017-01-24 18:40:19 -10:00
Jack Andersen e2c671e9b4 TCastTo implementation 2017-01-14 17:07:01 -10:00
Phillip Stephens b765ce3eb7 Lots of ScriptObject and Collision work 2017-01-03 20:30:05 -08:00
Phillip Stephens af1e22a62d Start naming EMaterialTypes values 2016-12-29 13:38:59 -08:00
Phillip Stephens 62ce5286fe CMapWorld stubs, and compile fixes 2016-07-28 00:33:55 -07:00
Phillip Stephens 00a98bce85 Various implementatations 2016-04-29 03:08:46 -07:00
Phillip Stephens f2d4040cdc Various implementations 2016-04-23 19:46:13 -07:00
Phillip Stephens 4272e8207b More preliminary implementations 2016-04-23 11:04:49 -07:00
Phillip Stephens 8f78aa5f16 More Actor imps 2016-04-23 03:51:53 -07:00
Phillip Stephens 43685b9119 More door imps 2016-04-22 17:29:55 -07:00
Phillip Stephens 4615f37f59 Various imps 2016-04-22 13:22:45 -07:00
Jack Andersen 8537ea5d8d Add some script loaders 2016-04-19 11:25:26 -10:00