Commit 312d490f authored by DailyShana's avatar DailyShana

update showing equip and target icon

parent a71beaca
...@@ -165,13 +165,11 @@ void ClientCard::UpdateInfo(char* buf) { ...@@ -165,13 +165,11 @@ void ClientCard::UpdateInfo(char* buf) {
} }
void ClientCard::ClearTarget() { void ClientCard::ClearTarget() {
for(auto cit = cardTarget.begin(); cit != cardTarget.end(); ++cit) { for(auto cit = cardTarget.begin(); cit != cardTarget.end(); ++cit) {
if(is_showtarget) (*cit)->is_showtarget = false;
(*cit)->is_showtarget = false;
(*cit)->ownerTarget.erase(this); (*cit)->ownerTarget.erase(this);
} }
for(auto cit = ownerTarget.begin(); cit != ownerTarget.end(); ++cit) { for(auto cit = ownerTarget.begin(); cit != ownerTarget.end(); ++cit) {
if(is_showtarget) (*cit)->is_showtarget = false;
(*cit)->is_showtarget = false;
(*cit)->cardTarget.erase(this); (*cit)->cardTarget.erase(this);
} }
cardTarget.clear(); cardTarget.clear();
......
...@@ -2573,6 +2573,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) { ...@@ -2573,6 +2573,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
} else { } else {
mainGame->gMutex.Lock(); mainGame->gMutex.Lock();
if(pc1->equipTarget) { if(pc1->equipTarget) {
pc1->is_showequip = false;
pc1->equipTarget->is_showequip = false; pc1->equipTarget->is_showequip = false;
pc1->equipTarget->equipped.erase(pc1); pc1->equipTarget->equipped.erase(pc1);
} }
......
Subproject commit ccbe898dfe57f5c34e3c659a849255303776cc61 Subproject commit 7861b594b004e93bc2af1689e4dcc7e7f1792fdf
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