mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
refactor: replace pair with vec2
This commit is contained in:
@@ -152,7 +152,8 @@ void GameScene::restartGame() {
|
||||
}
|
||||
|
||||
void GameScene::updatePieceInfo() {
|
||||
auto [mouseX, mouseY] = m_coreData->inputState.mouseCurrentLogicalPosition;
|
||||
int mouseX = m_coreData->inputState.mouseCurrentLogicalPosition.x;
|
||||
int mouseY = m_coreData->inputState.mouseCurrentLogicalPosition.y;
|
||||
auto click = m_CoordinateConverter->ScreenToBoard(mouseX, mouseY, m_boardRenderer->getBoardArea());
|
||||
|
||||
if (click == std::nullopt) {
|
||||
|
||||
Reference in New Issue
Block a user