Commit 309955d6 authored by mercury233's avatar mercury233

minor format

parent 7b4309b2
...@@ -18,7 +18,8 @@ class effect; ...@@ -18,7 +18,8 @@ class effect;
bool effect_sort_id(const effect* e1, const effect* e2); bool effect_sort_id(const effect* e1, const effect* e2);
struct effect_set { struct effect_set {
effect_set() : count(0), container{ nullptr } {} effect_set()
: count(0), container{ nullptr } {}
void add_item(effect* peffect) { void add_item(effect* peffect) {
if(count >= 64) return; if(count >= 64) return;
container[count++] = peffect; container[count++] = peffect;
......
...@@ -72,7 +72,7 @@ struct chain { ...@@ -72,7 +72,7 @@ struct chain {
chain() chain()
: chain_id(0), chain_count(0), triggering_player(PLAYER_NONE), triggering_controler(PLAYER_NONE), triggering_location(0), triggering_sequence(0), triggering_position(0), : chain_id(0), chain_count(0), triggering_player(PLAYER_NONE), triggering_controler(PLAYER_NONE), triggering_location(0), triggering_sequence(0), triggering_position(0),
triggering_state(), triggering_effect(nullptr), target_cards(nullptr), replace_op(0), target_player(PLAYER_NONE), target_param(0), disable_reason(nullptr), disable_player(PLAYER_NONE), triggering_state(), triggering_effect(nullptr), target_cards(nullptr), replace_op(0), target_player(PLAYER_NONE), target_param(0), disable_reason(nullptr), disable_player(PLAYER_NONE),
evt(), flag(0) {} evt(), flag(0) {}
static bool chain_operation_sort(const chain& c1, const chain& c2); static bool chain_operation_sort(const chain& c1, const chain& c2);
void set_triggering_state(card* pcard); void set_triggering_state(card* pcard);
...@@ -141,7 +141,7 @@ struct field_info { ...@@ -141,7 +141,7 @@ struct field_info {
uint8 can_shuffle; uint8 can_shuffle;
field_info() field_info()
: field_id(0), copy_id(0), turn_id(0), turn_id_by_player{0}, card_id(0), phase(0), turn_player(0), priorities{0}, can_shuffle(TRUE) {} : field_id(0), copy_id(0), turn_id(0), turn_id_by_player{ 0 }, card_id(0), phase(0), turn_player(0), priorities{ 0 }, can_shuffle(TRUE) {}
}; };
struct lpcost { struct lpcost {
int32 count; int32 count;
...@@ -149,7 +149,7 @@ struct lpcost { ...@@ -149,7 +149,7 @@ struct lpcost {
int32 lpstack[8]; int32 lpstack[8];
lpcost() lpcost()
: count(0), amount(0), lpstack{0} {} : count(0), amount(0), lpstack{ 0 } {}
}; };
struct processor_unit { struct processor_unit {
uint16 type; uint16 type;
......
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