mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
Update libcoopnet on windows, fix windows error
This commit is contained in:
parent
ad91385e2b
commit
2684b223a2
3 changed files with 3 additions and 1 deletions
Binary file not shown.
Binary file not shown.
|
@ -2402,7 +2402,9 @@ void mario_update_wall(struct MarioState* m, struct WallCollisionData* wcd) {
|
|||
}
|
||||
|
||||
// find the wall that is most "facing away"
|
||||
if (vec3f_dot((f32*)&m->wall->normal.x, (f32*)faceAngle) > vec3f_dot((f32*)&wcd->walls[i]->normal.x, (f32*)faceAngle)) {
|
||||
Vec3f w1 = { m->wall->normal.x, m->wall->normal.y, m->wall->normal.z };
|
||||
Vec3f w2 = {wcd->walls[i]->normal.x,wcd->walls[i]->normal.y, wcd->walls[i]->normal.z };
|
||||
if (vec3f_dot(w1, faceAngle) > vec3f_dot(w2, faceAngle)) {
|
||||
m->wall = wcd->walls[i];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue