Skip to content

Commit

Permalink
Bugfixes to match pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Svanåsbakken Crouch committed Feb 13, 2015
1 parent c089802 commit f6c4efd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion json/match/acceptMatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
MatchHandler::acceptMatch($user, $match);

if (MatchHandler::allHasAccepted($match)) {
if ($match->getCompoId() == 1) {
if ($match->getCompoId() == 3) {
$match->setState(1);
} else {
$match->setState(2);
Expand Down
2 changes: 1 addition & 1 deletion json/match/banmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$participants = MatchHandler::getParticipants($match);
$clan = $participants[$turn];

if ($user->equals($clan->getChief())) {
if ($user->getId() == $clan->getChief()) {
$voteOption = VoteOptionHandler::getVoteOption($_GET['id']);

if ($voteOption != null) {
Expand Down
6 changes: 6 additions & 0 deletions scripts/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ $(document).ready(function() {
});

function createChat(divId, chatId, height) {
for(var i = 0; i < chatList.length; i++) {
if(chatList[i].divId == divId) {
console.log("Div id " + divId + " allready exists. Deleting older occurance of it");
chatList.splice(i, 1);
}
}
chatList.push({"divId": divId, "chatId": chatId, "lastId": -1});
console.log("Created chat id " + chatId + " for divid " + divId + " with height " + height);

Expand Down
2 changes: 1 addition & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Settings {
const db_table_infected_compo_memberof = 'memberof';
const db_table_infected_compo_memberofchat = 'memberofchat';
const db_table_infected_compo_participantof = 'participantof';
const db_table_infected_compo_voteoptions = 'voteOptions';
const db_table_infected_compo_voteoptions = 'voteoptions';
const db_table_infected_compo_participantOfMatch = 'participantofmatch';
const db_table_infected_compo_matches = 'matches';
const db_table_infected_compo_readyusers = 'readyusers';
Expand Down

0 comments on commit f6c4efd

Please sign in to comment.