Commit 1d41c8c6 authored by nanahira's avatar nanahira

use define

parent c2daaaed
...@@ -1473,10 +1473,15 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) { ...@@ -1473,10 +1473,15 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
} }
case MSG_SELECT_UNSELECT_CARD: { case MSG_SELECT_UNSELECT_CARD: {
/*int selecting_player = */BufferIO::ReadInt8(pbuf); /*int selecting_player = */BufferIO::ReadInt8(pbuf);
/*bool buttonok = !!*/BufferIO::ReadInt8(pbuf); #ifdef YGOPRO_IGNORE_SELECT_UNSELECT
BufferIO::ReadInt8(pbuf);
BufferIO::ReadInt8(pbuf);
bool buttonok = true; bool buttonok = true;
/*mainGame->dField.select_cancelable = */BufferIO::ReadInt8(pbuf);
mainGame->dField.select_cancelable = TRUE; mainGame->dField.select_cancelable = TRUE;
#else
bool buttonok = !!BufferIO::ReadInt8(pbuf);
mainGame->dField.select_cancelable = BufferIO::ReadInt8(pbuf);
#endif
mainGame->dField.select_min = BufferIO::ReadInt8(pbuf); mainGame->dField.select_min = BufferIO::ReadInt8(pbuf);
mainGame->dField.select_max = BufferIO::ReadInt8(pbuf); mainGame->dField.select_max = BufferIO::ReadInt8(pbuf);
int count1 = BufferIO::ReadInt8(pbuf); int count1 = BufferIO::ReadInt8(pbuf);
......
...@@ -14,6 +14,9 @@ solution "ygo" ...@@ -14,6 +14,9 @@ solution "ygo"
if os.getenv("YGOPRO_COMPAT_MYCARD") then if os.getenv("YGOPRO_COMPAT_MYCARD") then
defines { "YGOPRO_COMPAT_MYCARD" } defines { "YGOPRO_COMPAT_MYCARD" }
end end
if os.getenv("YGOPRO_IGNORE_SELECT_UNSELECT") then
defines { "YGOPRO_IGNORE_SELECT_UNSELECT" }
end
configuration "windows" configuration "windows"
defines { "WIN32", "_WIN32", "WINVER=0x0501" } defines { "WIN32", "_WIN32", "WINVER=0x0501" }
libdirs { "$(DXSDK_DIR)Lib/x86" } libdirs { "$(DXSDK_DIR)Lib/x86" }
......
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