diff options
| author | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-05-17 20:33:28 -0300 |
|---|---|---|
| committer | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-05-17 20:33:28 -0300 |
| commit | 3b2efbb81ae7020d2bccb0b7a15a4f5eb14b1f63 (patch) | |
| tree | bbbc6c2a465c9e9e2eb5ecfef70a29d471b182b2 /src/engine/objects/Trophy.cpp | |
| parent | d52831e4ba9de27fdc70cd824a81f812011b81ce (diff) | |
fthismigration/vec-struct
Diffstat (limited to 'src/engine/objects/Trophy.cpp')
| -rw-r--r-- | src/engine/objects/Trophy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/objects/Trophy.cpp b/src/engine/objects/Trophy.cpp index 82882c8a2..cbee4ddbf 100644 --- a/src/engine/objects/Trophy.cpp +++ b/src/engine/objects/Trophy.cpp @@ -153,7 +153,7 @@ void OTrophy::Tick() { // func_80086D80 // Get the player's yaw Player *player = &gPlayers[0]; - float yaw = (player->rotation[1] + 0x4000) * (M_PI / 32768.0f); // Convert degrees to radians + float yaw = (player->rotation.y + 0x4000) * (M_PI / 32768.0f); // Convert degrees to radians // Calculate forward direction based on yaw (same as before) float lookAtX = player->pos.x + cos(yaw); |
