Commit f5c59f60 authored by salix5's avatar salix5

format

parent fe05c074
...@@ -144,8 +144,7 @@ extern "C" DECL_DLLEXPORT void new_card(ptr pduel, uint32 code, uint8 owner, uin ...@@ -144,8 +144,7 @@ extern "C" DECL_DLLEXPORT void new_card(ptr pduel, uint32 code, uint8 owner, uin
if(!(location & LOCATION_ONFIELD) || (position & POS_FACEUP)) { if(!(location & LOCATION_ONFIELD) || (position & POS_FACEUP)) {
pcard->enable_field_effect(true); pcard->enable_field_effect(true);
ptduel->game_field->adjust_instant(); ptduel->game_field->adjust_instant();
} } if(location & LOCATION_ONFIELD) {
if(location & LOCATION_ONFIELD) {
if(location == LOCATION_MZONE) if(location == LOCATION_MZONE)
pcard->set_status(STATUS_PROC_COMPLETE, TRUE); pcard->set_status(STATUS_PROC_COMPLETE, TRUE);
} }
...@@ -197,12 +196,12 @@ extern "C" DECL_DLLEXPORT int32 query_card(ptr pduel, uint8 playerid, uint8 loca ...@@ -197,12 +196,12 @@ extern "C" DECL_DLLEXPORT int32 query_card(ptr pduel, uint8 playerid, uint8 loca
lst = &ptduel->game_field->player[playerid].list_main; lst = &ptduel->game_field->player[playerid].list_main;
if(!lst || sequence >= lst->size()) if(!lst || sequence >= lst->size())
pcard = 0; pcard = 0;
else { else
pcard = (*lst)[sequence]; pcard = (*lst)[sequence];
} }
} if (pcard) {
if(pcard)
return pcard->get_infos(buf, query_flag, use_cache); return pcard->get_infos(buf, query_flag, use_cache);
}
else { else {
*((int32*)buf) = 4; *((int32*)buf) = 4;
return 4; return 4;
......
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