diff --git a/makefile b/makefile index b4d6e44..1a6f5f0 100644 --- a/makefile +++ b/makefile @@ -18,6 +18,7 @@ debug: CFLAGS+= -g debug: $(DIRS) $(TARGET) release: $(RELEASE) +release: LDFLAGS:= -Bstatic $(LDFLAGS) $(RELEASE):$(DIRS) $(TARGET) mkdir -p bin @@ -40,4 +41,4 @@ $(OBJDIR)/%.o: src/%.cpp clean: rm -rf $(TARGET) $(OBJDIR) $(DEPS) $(RELEASE) --include $(DEPS) \ No newline at end of file +-include $(DEPS) diff --git a/src/engine/GameEngine.cpp b/src/engine/GameEngine.cpp index dcabdb2..5a735e6 100644 --- a/src/engine/GameEngine.cpp +++ b/src/engine/GameEngine.cpp @@ -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; diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 3ee972e..9eba637 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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; } } diff --git a/src/proj.cpp b/src/proj.cpp index b480cf4..aab1dfd 100644 --- a/src/proj.cpp +++ b/src/proj.cpp @@ -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){