This commit is contained in:
Viktor Rådberg
2024-01-27 09:32:00 +01:00
parent 51f9c4d20e
commit 724dcf086c
7 changed files with 21 additions and 23 deletions

View File

@@ -73,11 +73,7 @@ const LifeCounter = ({ player, opponents }: LifeCounterProps) => {
const [recentDifference, setRecentDifference] = useState(0);
const [differenceKey, setDifferenceKey] = useState(Date.now());
const isSide =
player.settings.rotation === Rotation.Side ||
player.settings.rotation === Rotation.SideFlipped;
const rotationAngle = isSide
const rotationAngle = player.isSide
? player.settings.rotation - 180
: player.settings.rotation;