Commit 567d3144 authored by Chen Bill's avatar Chen Bill

remove bool type in HostInfo

parent e8209d5d
...@@ -14,16 +14,16 @@ namespace ygo { ...@@ -14,16 +14,16 @@ namespace ygo {
constexpr int MAX_DATA_SIZE = SIZE_NETWORK_BUFFER - 3; constexpr int MAX_DATA_SIZE = SIZE_NETWORK_BUFFER - 3;
struct HostInfo { struct HostInfo {
unsigned int lflist{ 0 }; unsigned int lflist{};
unsigned char rule{ 0 }; unsigned char rule{};
unsigned char mode{ 0 }; unsigned char mode{};
unsigned char duel_rule{ 0 }; unsigned char duel_rule{};
bool no_check_deck{ false }; unsigned char no_check_deck{};
bool no_shuffle_deck{ false }; unsigned char no_shuffle_deck{};
unsigned int start_lp{ 0 }; unsigned int start_lp{};
unsigned char start_hand{ 0 }; unsigned char start_hand{};
unsigned char draw_count{ 0 }; unsigned char draw_count{};
unsigned short time_limit{ 0 }; unsigned short time_limit{};
}; };
struct HostPacket { struct HostPacket {
unsigned short identifier; unsigned short identifier;
......
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