Commit 475f9dd3 authored by salix5's avatar salix5

remove counter

Now a player can remove 2^16-1=65535 counters from each card.
parent d15cdb16
......@@ -3275,7 +3275,7 @@ void DuelClient::SetResponseI(int respI) {
*((int*)response_buf) = respI;
response_len = 4;
}
void DuelClient::SetResponseB(unsigned char * respB, unsigned char len) {
void DuelClient::SetResponseB(void* respB, unsigned char len) {
memcpy(response_buf, respB, len);
response_len = len;
}
......
......@@ -42,7 +42,7 @@ public:
static void HandleSTOCPacketLan(char* data, unsigned int len);
static int ClientAnalyze(char* msg, unsigned int len);
static void SetResponseI(int respI);
static void SetResponseB(unsigned char* respB, unsigned char len);
static void SetResponseB(void* respB, unsigned char len);
static void SendResponse();
static void SendPacketToServer(unsigned char proto) {
char* p = duel_client_write;
......
......@@ -1453,7 +1453,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
clicked_card->is_selectable = false;
select_counter_count--;
if (select_counter_count == 0) {
unsigned char respbuf[64];
unsigned short int respbuf[32];
for(size_t i = 0; i < selectable_cards.size(); ++i)
respbuf[i] = (selectable_cards[i]->opParam >> 16) - (selectable_cards[i]->opParam & 0xffff);
mainGame->stHintMsg->setVisible(false);
......
Subproject commit f524c6bfe7055405efba5ea98ac8bc688b1ecad4
Subproject commit 6a7087423c889bb51aa92c6bb836b476e9776cdb
Subproject commit 83adfae3f0e9da818082db24e055a6077d8b7c6b
Subproject commit cf2966bca9eeab2dd275da5d2a20e59ac74f23fc
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