diff --git a/README.md b/README.md index 30fd914..7c6c091 100644 --- a/README.md +++ b/README.md @@ -210,12 +210,13 @@ That will generate the rom at `/build/portal64.z64`
## Current New Feature TODO List +- [ ] portal hole cutting problems - [ ] figure out why portals somtimes are in front of window - [ ] optimize static culling - [ ] jump animation -- [ ] crashed when dying in test chamber 05 when hit by pellet in mid air while touching a portal -- [ ] rumble pak support - [ ] pausing while glados is speaking can end her speech early +- [x] crashed when dying in test chamber 05 when hit by pellet in mid air while touching a portal +- [x] rumble pak support - [x] valve intro - [x] polish up subtitles - [x] more sound settings diff --git a/src/physics/collision_scene.c b/src/physics/collision_scene.c index b9ffced..19ec2be 100644 --- a/src/physics/collision_scene.c +++ b/src/physics/collision_scene.c @@ -698,6 +698,10 @@ void collisionSceneCollideDynamicPairs(struct CollisionScene* collisionScene, st } int collisionSceneObjectIsTouchingPortal(struct CollisionObject* object, int portalIndex) { + if (!gCollisionScene.portalTransforms[portalIndex]) { + return 0; + } + struct Simplex simplex; struct Vector3 direction; quatMultVector(&gCollisionScene.portalTransforms[portalIndex]->rotation, &gRight, &direction);