summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSonic Dreamcaster <alejandro.asenjo88@gmail.com>2026-03-23 18:29:19 -0300
committerSonic Dreamcaster <alejandro.asenjo88@gmail.com>2026-03-23 18:29:19 -0300
commit7dd7ec260bf1820caf95edd886d0893533f0e93c (patch)
tree6f2e7b9ad03353925c35127140b7ccae75e9a72f
parent0b90f2620e565a622f6f2b1256022d4c12fcea50 (diff)
No need to rotate buildings twice if we're already doing it in Object_SetMatrix
-rw-r--r--src/engine/fox_enmy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/engine/fox_enmy.c b/src/engine/fox_enmy.c
index 5c7663b2..18e99218 100644
--- a/src/engine/fox_enmy.c
+++ b/src/engine/fox_enmy.c
@@ -2005,6 +2005,13 @@ void Sprite167_Update(Sprite167* this) {
// World-aligned billboarding
void SceneryRotateTowardsCamera(Scenery* this) {
+ bool isBuilding = (this->obj.id >= OBJ_SCENERY_CO_BUILDING_5 && this->obj.id <= OBJ_SCENERY_CO_BUILDING_8 ||
+ this->obj.id == OBJ_SCENERY_CO_BUILDING_10);
+
+ if (isBuilding) {
+ return;
+ }
+
this->obj.rot.y = 0.0f;
if (gPlayer[0].cam.eye.x < this->obj.pos.x) {
this->obj.rot.y = 271.0f;