Commit 98a5ca4b authored by fallenstardust's avatar fallenstardust

revert drawing: drawMisc 超量素材绘制顺序

不按原版Gframe顺序,会出现素材显示问题,可能因为是OpenGL和d3d渲染逻辑不通
parent 7566f482
...@@ -289,6 +289,21 @@ void Game::DrawLinkedZones(ClientCard* pcard, ClientCard* fcard) { ...@@ -289,6 +289,21 @@ void Game::DrawLinkedZones(ClientCard* pcard, ClientCard* fcard) {
} }
void Game::DrawCards() { void Game::DrawCards() {
for (auto cit = dField.overlay_cards.begin(); cit != dField.overlay_cards.end(); ++cit) {
auto pcard = (*cit);
auto olcard = pcard->overlayTarget;
if (pcard->aniFrame) {
DrawCard(pcard);
}
else if (olcard && olcard->location == LOCATION_MZONE) {
if (pcard->sequence < MAX_LAYER_COUNT) {
DrawCard(pcard);
}
}
else {
DrawCard(pcard);
}
}
for(int p = 0; p < 2; ++p) { for(int p = 0; p < 2; ++p) {
for(auto it = dField.mzone[p].begin(); it != dField.mzone[p].end(); ++it) for(auto it = dField.mzone[p].begin(); it != dField.mzone[p].end(); ++it)
if(*it) if(*it)
...@@ -307,21 +322,6 @@ void Game::DrawCards() { ...@@ -307,21 +322,6 @@ void Game::DrawCards() {
for(auto it = dField.extra[p].begin(); it != dField.extra[p].end(); ++it) for(auto it = dField.extra[p].begin(); it != dField.extra[p].end(); ++it)
DrawCard(*it); DrawCard(*it);
} }
for (auto cit = dField.overlay_cards.begin(); cit != dField.overlay_cards.end(); ++cit) {
auto pcard = (*cit);
auto olcard = pcard->overlayTarget;
if (pcard->aniFrame) {
DrawCard(pcard);
}
else if (olcard && olcard->location == LOCATION_MZONE) {
if (pcard->sequence < MAX_LAYER_COUNT) {
DrawCard(pcard);
}
}
else {
DrawCard(pcard);
}
}
} }
void Game::DrawCard(ClientCard* pcard) { void Game::DrawCard(ClientCard* pcard) {
if(pcard->aniFrame) { if(pcard->aniFrame) {
......
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