fix side counters

This commit is contained in:
Viktor Rådberg
2023-08-02 16:29:36 +02:00
parent c43a2dfe98
commit e2fbdbd043
3 changed files with 5 additions and 33 deletions

View File

@@ -20,11 +20,11 @@ const presetColors = [
];
const getRotation = (index: number, gridAreas: GridTemplateAreas): Rotation => {
if (gridAreas === GridTemplateAreas.OnePlayerLandscape && index === 1) {
if (gridAreas === GridTemplateAreas.OnePlayerLandscape && index === 0) {
return Rotation.Normal;
}
if (gridAreas === GridTemplateAreas.OnePlayerPortrait && index === 1) {
if (gridAreas === GridTemplateAreas.OnePlayerPortrait && index === 0) {
return Rotation.Side;
}