Commit 173c45ef authored by mercury233's avatar mercury233 Committed by fallenstardust

fix opponent hand hover sequence

parent 6bc19b69
......@@ -2007,7 +2007,7 @@ void ClientField::GetHoverField(int x, int y) {
if(x >= ofRect.UpperLeftCorner.X + (cardSize + cardSpace) * 5 * mainGame->xScale)
hovered_sequence = 0;
else
hovered_sequence = hc - 1 - (x - ofRect.UpperLeftCorner.X) * (hc - 1) / ((cardSize + cardSpace) * 5 * mainGame->xScale);
hovered_sequence = hc - 1 - (x - ofRect.UpperLeftCorner.X) * (hc - 1) / (int)((cardSize + cardSpace) * 5 * mainGame->xScale);
}
} else {
double screenx = x / (GAME_WIDTH * mainGame->xScale) * 1.35 - 0.90;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment