shortening sideways check

This commit is contained in:
Chr1Z93 2023-03-25 01:05:02 +01:00
parent f25cb59aeb
commit 7e0f7d651f

View File

@ -108,9 +108,8 @@ Spawner.spawn = function(cardList, pos, rot, callback)
local sidewaysDeck = true local sidewaysDeck = true
for _, spawnCard in ipairs(cardList) do for _, spawnCard in ipairs(cardList) do
Spawner.addCardToDeck(deck, spawnCard.data) Spawner.addCardToDeck(deck, spawnCard.data)
if not spawnCard.data.SidewaysCard then -- set sidewaysDeck to false if any card is not a sideways card
sidewaysDeck = false sidewaysDeck = (sidewaysDeck and spawnCard.data.SidewaysCard)
end
end end
-- set the alt view angle for sideway decks -- set the alt view angle for sideway decks
if sidewaysDeck then if sidewaysDeck then