No need to rotate buildings twice if we're already doing it in Object_SetMatrix

This commit is contained in:
Sonic Dreamcaster
2026-03-23 18:29:19 -03:00
parent 0b90f2620e
commit 7dd7ec260b
+7
View File
@@ -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;