Skip to content

Commit

Permalink
remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Prakhar314 committed May 20, 2021
1 parent b765194 commit a2a56dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ debug: CFLAGS+= -g
debug: $(DIRS) $(TARGET)

release: $(RELEASE)
release: LDFLAGS:= -Bstatic $(LDFLAGS)

$(RELEASE):$(DIRS) $(TARGET)
mkdir -p bin
Expand All @@ -40,4 +41,4 @@ $(OBJDIR)/%.o: src/%.cpp
clean:
rm -rf $(TARGET) $(OBJDIR) $(DEPS) $(RELEASE)

-include $(DEPS)
-include $(DEPS)
2 changes: 1 addition & 1 deletion src/engine/GameEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void GameEngine::checkRoundEnd(){
}
if (playMode->bombState==DEFUSED){
playMode->setWinner(DEFEND);
cout<<"IN1\n";
// cout<<"IN1\n";
serverObj->SendRoundEndSignal(DEFEND);
playMode->gameMessage->resetMessage("ROUND OVER", playMode->RoundEndMessageDuration, DEFEND,false);
playMode->roundEndMessageInit = true;
Expand Down
2 changes: 1 addition & 1 deletion src/game/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void Player::damage(int d){
if (!isDead){
health -= d;
health = max(0, health);
cout <<"Health "<< health << endl;
// cout <<"Health "<< health << endl;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/proj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void* ReceiveLoop(void* param){
gEngine->playMode->bombPlanted({received_data[1], received_data[2]});
}
else if (received_data[0]==6){
cout<<"IN2\n";
// cout<<"IN2\n";
gEngine->playMode->setWinner(received_data[1]);
}
else if (received_data[0]==8){
Expand Down

0 comments on commit a2a56dd

Please sign in to comment.