mirror of
https://github.com/mwpenny/portal64-still-alive.git
synced 2024-10-19 22:27:36 -04:00
Fix bug where dying while touching a portal can lead to a crash
This commit is contained in:
parent
288407ca02
commit
5a32c2faec
|
@ -210,12 +210,13 @@ That will generate the rom at `/build/portal64.z64`
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
## Current New Feature TODO List
|
## Current New Feature TODO List
|
||||||
|
- [ ] portal hole cutting problems
|
||||||
- [ ] figure out why portals somtimes are in front of window
|
- [ ] figure out why portals somtimes are in front of window
|
||||||
- [ ] optimize static culling
|
- [ ] optimize static culling
|
||||||
- [ ] jump animation
|
- [ ] 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
|
- [ ] 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] valve intro
|
||||||
- [x] polish up subtitles
|
- [x] polish up subtitles
|
||||||
- [x] more sound settings
|
- [x] more sound settings
|
||||||
|
|
|
@ -698,6 +698,10 @@ void collisionSceneCollideDynamicPairs(struct CollisionScene* collisionScene, st
|
||||||
}
|
}
|
||||||
|
|
||||||
int collisionSceneObjectIsTouchingPortal(struct CollisionObject* object, int portalIndex) {
|
int collisionSceneObjectIsTouchingPortal(struct CollisionObject* object, int portalIndex) {
|
||||||
|
if (!gCollisionScene.portalTransforms[portalIndex]) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
struct Simplex simplex;
|
struct Simplex simplex;
|
||||||
struct Vector3 direction;
|
struct Vector3 direction;
|
||||||
quatMultVector(&gCollisionScene.portalTransforms[portalIndex]->rotation, &gRight, &direction);
|
quatMultVector(&gCollisionScene.portalTransforms[portalIndex]->rotation, &gRight, &direction);
|
||||||
|
|
Loading…
Reference in a new issue