Commit 55c41bfa authored by nanahira's avatar nanahira

support ALL master rules

parent 643f6ca8
...@@ -86,8 +86,15 @@ int main(int argc, char* argv[]) { ...@@ -86,8 +86,15 @@ int main(int argc, char* argv[]) {
ygo::game_info.mode = mode; ygo::game_info.mode = mode;
if(argv[5][0] == 'T') if(argv[5][0] == 'T')
ygo::game_info.duel_rule = DEFAULT_DUEL_RULE - 1; ygo::game_info.duel_rule = DEFAULT_DUEL_RULE - 1;
else if(argv[5][0] == 'F')
ygo::game_info.duel_rule = DEFAULT_DUEL_RULE;
else {
int master_rule = atoi(argv[5]);
if(master_rule)
ygo::game_info.duel_rule = master_rule;
else else
ygo::game_info.duel_rule = DEFAULT_DUEL_RULE; ygo::game_info.duel_rule = DEFAULT_DUEL_RULE;
}
if(argv[6][0] == 'T') if(argv[6][0] == 'T')
ygo::game_info.no_check_deck = true; ygo::game_info.no_check_deck = true;
else else
......
Subproject commit f79332d76d1b5774fe0105e541d34c7b40e3e54a Subproject commit df7f36d8847fc560991ad8bd80ad40ea8ab8361e
Subproject commit 573645ee990be70d8e7c7ae2fa8a8fad33e9d62e Subproject commit ebd97b358b20e82c334a972ae3eaa42ec91329eb
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