Commit e9e9be20 authored by edo9300's avatar edo9300

Fixed wrong function

parent acad4c06
...@@ -2039,7 +2039,9 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) { ...@@ -2039,7 +2039,9 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
float shift = -0.15f; float shift = -0.15f;
if (player == 1) shift = 0.15f; if (player == 1) shift = 0.15f;
pcard->dPos = irr::core::vector3df(shift, 0, 0); pcard->dPos = irr::core::vector3df(shift, 0, 0);
pcard->dRot = irr::core::vector3df(0, 3.14159f / 5.0f, 0); if(!mainGame->dField.deck_reversed)
pcard->dRot = irr::core::vector3df(0, 3.14159f / 5.0f, 0);
else pcard->dRot = irr::core::vector3df(0, 0, 0);
pcard->is_moving = true; pcard->is_moving = true;
pcard->aniFrame = 5; pcard->aniFrame = 5;
mainGame->WaitFrameSignal(45); mainGame->WaitFrameSignal(45);
...@@ -2077,9 +2079,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) { ...@@ -2077,9 +2079,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
pcard->dPos = irr::core::vector3df(0, -0.20f, 0); pcard->dPos = irr::core::vector3df(0, -0.20f, 0);
else else
pcard->dPos = irr::core::vector3df(0.15f, 0, 0); pcard->dPos = irr::core::vector3df(0.15f, 0, 0);
if(!mainGame->dField.deck_reversed) pcard->dRot = irr::core::vector3df(0, 3.14159f / 5.0f, 0);
pcard->dRot = irr::core::vector3df(0, 3.14159f / 5.0f, 0);
else pcard->dRot = irr::core::vector3df(0, 0, 0);
pcard->is_moving = true; pcard->is_moving = true;
pcard->aniFrame = 5; pcard->aniFrame = 5;
mainGame->WaitFrameSignal(45); mainGame->WaitFrameSignal(45);
......
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