Commit 4047c1a7 authored by salix5's avatar salix5 Committed by GitHub

update left shift (#657)

parent abc797dd
...@@ -3875,7 +3875,7 @@ int32 scriptlib::duel_select_disable_field(lua_State * L) { ...@@ -3875,7 +3875,7 @@ int32 scriptlib::duel_select_disable_field(lua_State * L) {
} }
if(dfflag & (0x1U << 5)) if(dfflag & (0x1U << 5))
dfflag |= 0x1U << (16 + 6); dfflag |= 0x1U << (16 + 6);
if(dfflag & (0x1 << 6)) if(dfflag & (0x1U << 6))
dfflag |= 0x1U << (16 + 5); dfflag |= 0x1U << (16 + 5);
lua_pushinteger(L, dfflag); lua_pushinteger(L, dfflag);
return 1; return 1;
......
...@@ -4632,7 +4632,7 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret, ...@@ -4632,7 +4632,7 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret,
} }
case 1: { case 1: {
uint32 seq = returns.bvalue[2]; uint32 seq = returns.bvalue[2];
if(location == LOCATION_SZONE && zone == 0x1 << 5 && (target->data.type & TYPE_FIELD) && (target->data.type & TYPE_SPELL)) if(location == LOCATION_SZONE && zone == 0x1U << 5 && (target->data.type & TYPE_FIELD) && (target->data.type & TYPE_SPELL))
seq = 5; seq = 5;
if(ret != RETURN_TEMP_REMOVE_TO_FIELD) { if(ret != RETURN_TEMP_REMOVE_TO_FIELD) {
if(location != target->current.location) { if(location != target->current.location) {
...@@ -4742,7 +4742,7 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret, ...@@ -4742,7 +4742,7 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret,
} }
if(peffect->get_handler_player() != target->current.controler) if(peffect->get_handler_player() != target->current.controler)
value = value >> 16; value = value >> 16;
if(value & (0x1 << target->current.sequence)) { if(value & (0x1U << target->current.sequence)) {
peffect->dec_count(); peffect->dec_count();
} }
} }
......
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