Fixed A_OverlayPivotAlign using bitwise or instead of assigning

This commit is contained in:
Boondorl 2024-04-17 19:43:08 -04:00 committed by Ricardo Luís Vaz Silva
parent 9af3d54a19
commit b20f09a910

View file

@ -993,9 +993,9 @@ DEFINE_ACTION_FUNCTION(AActor, A_OverlayPivotAlign)
if (pspr != nullptr)
{
if (halign >= PSPA_LEFT && halign <= PSPA_RIGHT)
pspr->HAlign |= halign;
pspr->HAlign = halign;
if (valign >= PSPA_TOP && valign <= PSPA_BOTTOM)
pspr->VAlign |= valign;
pspr->VAlign = valign;
}
return 0;
}