Skip to content

Commit

Permalink
mission selection redirect back bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wooki committed Dec 31, 2012
1 parent 86197c4 commit 64fb102
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions application/controllers/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public function state($slug=false) {
} else if ($game->state == "mission-selection" &&
$player->state == "mission-approve") {
$game_url = Game::get_url_for_state("mission-approve", $game->slug);
} else if ($player->state == "mission-selection") {
$game_url = Game::get_url_for_state("mission-selection", $game->slug);
} else if ($game->state == "mission-approve") {
$game_url = Game::get_url_for_state("mission-approve", $game->slug);
} else if ($player->state == "mission-selection") {
$game_url = Game::get_url_for_state("mission-selection", $game->slug);
}

echo json_encode(array(
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/missions.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function vote($slug=false) {
}


// handle post from team leader of team
// handle post from last player from team
// move to approve team state and await
// player votes
public function approve($slug=false) {
Expand Down

0 comments on commit 64fb102

Please sign in to comment.