Thanks for mod! I have one suggestion for K.O. gametype.
The problem: when round is ended, server show message "bla-bla is the best player on this server" and winner join spectrators. This is very annoying, winner must continue playing.
Proposed patch:
diff --git a/teeworlds/src/game/server/gamemodes/ko.cpp b/teeworlds/src/game/server/gamemodes/ko.cpp
index 7582b31..b5fc53e 100644
--- a/teeworlds/src/game/server/gamemodes/ko.cpp
+++ b/teeworlds/src/game/server/gamemodes/ko.cpp
@@ -69,14 +69,19 @@ void GAMECONTROLLER_KO::tick()
{
char buf[512];
if((teamscore[0] > teamscore[1] && player[0] != -1) || (player[0] != -1 && playe
+ {
strcpy(buf, server_clientname(player[0]));
+ if(player[1] != -1)
+ game.players[player[1]]->set_team(-1);
+ }
else if(player[1] != -1)
+ {
strcpy(buf, server_clientname(player[1]));
+ if(player[0] != -1)
+ game.players[player[0]]->set_team(-1);
+ }
strcat(buf, " is the best player on this server.");
- if(player[0] != -1)
- game.players[player[0]]->set_team(-1);
- if(player[1] != -1)
- game.players[player[1]]->set_team(-1);
+
for(int i = 0; i < MAX_CLIENTS; i++)
{
if(game.players[i])