Commit b78038c2 authored by nanahira's avatar nanahira

Merge branch 'master' of ../ygopro-7210srv

parents 0e09bd5c 1888ff37
...@@ -16,9 +16,9 @@ install: ...@@ -16,9 +16,9 @@ install:
- tar xf lua-5.3.4.tar.gz - tar xf lua-5.3.4.tar.gz
- move lua-5.3.4\src lua - move lua-5.3.4\src lua
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.sqlite.org/2016/sqlite-amalgamation-3150200.zip ; exit 0" - bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.sqlite.org/2016/sqlite-amalgamation-3210000.zip ; exit 0"
- 7z x sqlite-amalgamation-3150200.zip - 7z x sqlite-amalgamation-3210000.zip
- move sqlite-amalgamation-3150200 sqlite3 - move sqlite-amalgamation-3210000 sqlite3
- appveyor DownloadFile https://github.com/tronkko/dirent/raw/master/include/dirent.h - appveyor DownloadFile https://github.com/tronkko/dirent/raw/master/include/dirent.h
- move dirent.h gframe\ - move dirent.h gframe\
...@@ -124,9 +124,8 @@ cache: ...@@ -124,9 +124,8 @@ cache:
- freetype-2.8.tar.bz2 - freetype-2.8.tar.bz2
- irrlicht-1.8.4.zip - irrlicht-1.8.4.zip
- lua-5.3.4.tar.gz - lua-5.3.4.tar.gz
- sqlite-amalgamation-3200100.zip - sqlite-amalgamation-3210000.zip
- irrKlang-32bit-1.5.0.zip - irrKlang-32bit-1.5.0.zip
- sqlite-amalgamation-3150200.zip
- premake-5.0.0-alpha10-windows.zip - premake-5.0.0-alpha10-windows.zip
- Redis-x64-3.2.100.zip - Redis-x64-3.2.100.zip
No preview for this file type
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <dirent.h> #include <dirent.h>
#endif #endif
const unsigned short PRO_VERSION = 0x1341; const unsigned short PRO_VERSION = 0x1342;
namespace ygo { namespace ygo {
......
...@@ -941,12 +941,12 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) { ...@@ -941,12 +941,12 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
case MSG_SHUFFLE_EXTRA: { case MSG_SHUFFLE_EXTRA: {
player = BufferIO::ReadInt8(pbuf); player = BufferIO::ReadInt8(pbuf);
count = BufferIO::ReadInt8(pbuf); count = BufferIO::ReadInt8(pbuf);
NetServer::SendBufferToPlayer(players[player], STOC_GAME_MSG, offset, (pbuf - offset) + count * 4); NetServer::SendBufferToPlayer(cur_player[player], STOC_GAME_MSG, offset, (pbuf - offset) + count * 4);
NetServer::ReSendToPlayer(players[player * 2 + 1]);
for(int i = 0; i < count; ++i) for(int i = 0; i < count; ++i)
BufferIO::WriteInt32(pbuf, 0); BufferIO::WriteInt32(pbuf, 0);
for (int p = (1 - player) * 2, i = 0; i < 2; i++, p++) for(int i = 0; i < 4; ++i)
NetServer::SendBufferToPlayer(players[p], STOC_GAME_MSG, offset, pbuf - offset); if(players[i] != cur_player[player])
NetServer::SendBufferToPlayer(players[i], STOC_GAME_MSG, offset, pbuf - offset);
for(auto oit = observers.begin(); oit != observers.end(); ++oit) for(auto oit = observers.begin(); oit != observers.end(); ++oit)
NetServer::ReSendToPlayer(*oit); NetServer::ReSendToPlayer(*oit);
RefreshExtra(player); RefreshExtra(player);
......
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