Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

team vote failed, next team allocation

  • Loading branch information...
commit 3dd67ff6de0c6664129b2f7fc09aea2c392a3c45 1 parent 6dc9ba9
@wooki authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 application/controllers/missions.php
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.