Permalink
Browse files

team vote failed, next team allocation

  • Loading branch information...
1 parent 6dc9ba9 commit 3dd67ff6de0c6664129b2f7fc09aea2c392a3c45 @wooki committed Dec 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 application/controllers/missions.php
@@ -227,12 +227,16 @@ public function selection($slug=false) {
if ($game->current_mission = false) {
$game->current_mission = 0;
$game->current_team = 0;
+ } else if ($game->current_team = false) {
+ $game->current_team = 0;
}
// when the last player reaches this point update game status
if (Game::all_players_state($game, 'mission-selection') == true) {
$game->state = 'mission-selection';
}
+echo "<p>".print_r($game, true)."</p>";
+
Game::save($game, $games_list);
// set view data

0 comments on commit 3dd67ff

Please sign in to comment.