diff options
| author | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2026-03-23 18:29:19 -0300 |
|---|---|---|
| committer | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2026-03-23 18:29:19 -0300 |
| commit | 7dd7ec260bf1820caf95edd886d0893533f0e93c (patch) | |
| tree | 6f2e7b9ad03353925c35127140b7ccae75e9a72f | |
| parent | 0b90f2620e565a622f6f2b1256022d4c12fcea50 (diff) | |
No need to rotate buildings twice if we're already doing it in Object_SetMatrix
| -rw-r--r-- | src/engine/fox_enmy.c | 7 |
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; |
