Commit 409b6cf6 authored by fallenstardust's avatar fallenstardust

补充刷新卡差计数时点

parent 385c735d
...@@ -297,6 +297,7 @@ ClientCard* ClientField::RemoveCard(int controler, int location, int sequence) { ...@@ -297,6 +297,7 @@ ClientCard* ClientField::RemoveCard(int controler, int location, int sequence) {
} }
} }
pcard->location = 0; pcard->location = 0;
RefreshCardCountDisplay();
return pcard; return pcard;
} }
void ClientField::UpdateCard(int controler, int location, int sequence, char* data) { void ClientField::UpdateCard(int controler, int location, int sequence, char* data) {
...@@ -1450,10 +1451,10 @@ void ClientField::RefreshCardCountDisplay() { ...@@ -1450,10 +1451,10 @@ void ClientField::RefreshCardCountDisplay() {
} }
if(mainGame->dInfo.card_count[0] > mainGame->dInfo.card_count[1]) { if(mainGame->dInfo.card_count[0] > mainGame->dInfo.card_count[1]) {
mainGame->dInfo.card_count_color[0] = 0xffffff00; mainGame->dInfo.card_count_color[0] = 0xffffff00;
mainGame->dInfo.card_count_color[1] = 0xffff7f00; mainGame->dInfo.card_count_color[1] = 0xffff0000;
} else if(mainGame->dInfo.card_count[1] > mainGame->dInfo.card_count[0]) { } else if(mainGame->dInfo.card_count[1] > mainGame->dInfo.card_count[0]) {
mainGame->dInfo.card_count_color[1] = 0xffffff00; mainGame->dInfo.card_count_color[1] = 0xffffff00;
mainGame->dInfo.card_count_color[0] = 0xffff7f00; mainGame->dInfo.card_count_color[0] = 0xffff0000;
} else { } else {
mainGame->dInfo.card_count_color[0] = 0xffffffff; mainGame->dInfo.card_count_color[0] = 0xffffffff;
mainGame->dInfo.card_count_color[1] = 0xffffffff; mainGame->dInfo.card_count_color[1] = 0xffffffff;
......
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