Commit 3c1db2fc authored by lllyasviel's avatar lllyasviel Committed by GitHub

Merge pull request #77 from nekrozar/patch-2

add race Cybers
parents df28a5b8 0dd1db53
...@@ -376,7 +376,8 @@ public: ...@@ -376,7 +376,8 @@ public:
#define RACE_PSYCHO 0x100000 // #define RACE_PSYCHO 0x100000 //
#define RACE_DEVINE 0x200000 // #define RACE_DEVINE 0x200000 //
#define RACE_CREATORGOD 0x400000 // #define RACE_CREATORGOD 0x400000 //
#define RACE_PHANTOMDRAGON 0x800000 // #define RACE_WYRM 0x800000 //
#define RACE_CYBERS 0x1000000 //
//Reason //Reason
#define REASON_DESTROY 0x1 // #define REASON_DESTROY 0x1 //
#define REASON_RELEASE 0x2 // #define REASON_RELEASE 0x2 //
......
...@@ -715,7 +715,7 @@ int32 field::sort_card(int16 step, uint8 playerid, uint8 is_chain) { ...@@ -715,7 +715,7 @@ int32 field::sort_card(int16 step, uint8 playerid, uint8 is_chain) {
int32 field::announce_race(int16 step, uint8 playerid, int32 count, int32 available) { int32 field::announce_race(int16 step, uint8 playerid, int32 count, int32 available) {
if(step == 0) { if(step == 0) {
int32 scount = 0; int32 scount = 0;
for(int32 ft = 0x1; ft != 0x1000000; ft <<= 1) { for(int32 ft = 0x1; ft != 0x2000000; ft <<= 1) {
if(ft & available) if(ft & available)
scount++; scount++;
} }
...@@ -731,7 +731,7 @@ int32 field::announce_race(int16 step, uint8 playerid, int32 count, int32 availa ...@@ -731,7 +731,7 @@ int32 field::announce_race(int16 step, uint8 playerid, int32 count, int32 availa
} else { } else {
int32 rc = returns.ivalue[0]; int32 rc = returns.ivalue[0];
int32 sel = 0; int32 sel = 0;
for(int32 ft = 0x1; ft != 0x1000000; ft <<= 1) { for(int32 ft = 0x1; ft != 0x2000000; ft <<= 1) {
if(!(ft & rc)) continue; if(!(ft & rc)) continue;
if(!(ft & available)) { if(!(ft & available)) {
pduel->write_buffer8(MSG_RETRY); pduel->write_buffer8(MSG_RETRY);
......
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