mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
fix(ui): correct player rotation logic in GameUI
This commit is contained in:
@@ -80,7 +80,7 @@ namespace UNO::UI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto self = other_player.begin() + static_cast<int>(clientGameState->getSelfId());
|
auto self = other_player.begin() + static_cast<int>(clientGameState->getSelfId());
|
||||||
std::ranges::rotate(other_player, self);
|
std::ranges::rotate(other_player, std::next(self));
|
||||||
other_player.pop_back();
|
other_player.pop_back();
|
||||||
|
|
||||||
auto other_player_slint = std::make_shared<slint::VectorModel<OtherPlayer>>();
|
auto other_player_slint = std::make_shared<slint::VectorModel<OtherPlayer>>();
|
||||||
|
|||||||
Reference in New Issue
Block a user