Commit 22cedb89 authored by edo9300's avatar edo9300

Fix

parent 914f7b78
......@@ -75,11 +75,11 @@ void Game::DrawBackGround() {
break;
}
case 3: {
tfield = 1;
tfield = 0;
break;
}
case 4: {
tfield = 0;
tfield = 1;
break;
}
}
......
......@@ -1506,19 +1506,19 @@ int Game::GetMasterRule(uint32 param, uint32 forbiddentypes, int* truerule) {
if (truerule)
*truerule = 2;
if (forbiddentypes == MASTER_RULE_2_FORB)
return 1;
return 2;
}
case MASTER_RULE_3: {
if (truerule)
*truerule = 3;
if (forbiddentypes == MASTER_RULE_3_FORB)
return 1;
return 3;
}
case MASTER_RULE_4: {
if (truerule)
*truerule = 4;
if (forbiddentypes == MASTER_RULE_4_FORB)
return 1;
return 4;
}
default: {
if (truerule)
......
......@@ -548,21 +548,25 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
case 0:{
mainGame->cbDuelRule->removeItem(4);
mainGame->duel_param = MASTER_RULE_1;
mainGame->forbiddentypes = MASTER_RULE_1_FORB;
break;
}
case 1: {
mainGame->cbDuelRule->removeItem(4);
mainGame->duel_param = MASTER_RULE_2;
mainGame->forbiddentypes = MASTER_RULE_2_FORB;
break;
}
case 2: {
mainGame->cbDuelRule->removeItem(4);
mainGame->duel_param = MASTER_RULE_3;
mainGame->forbiddentypes = MASTER_RULE_3_FORB;
break;
}
case 3: {
mainGame->cbDuelRule->removeItem(4);
mainGame->duel_param = MASTER_RULE_4;
mainGame->forbiddentypes = MASTER_RULE_4_FORB;
break;
}
}
......
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