Skip to content

Instantly share code, notes, and snippets.

@dlh
Created July 25, 2014 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlh/2a5a8eb3dadef57fd8ed to your computer and use it in GitHub Desktop.
Save dlh/2a5a8eb3dadef57fd8ed to your computer and use it in GitHub Desktop.
=== modified file 'src/tron/gGame.cpp'
--- src/tron/gGame.cpp 2012-04-21 10:06:21 +0000
+++ src/tron/gGame.cpp 2014-07-25 21:13:50 +0000
@@ -1437,9 +1437,9 @@
#endif
if (sg_singlePlayer != newsg_singlePlayer && bool( sg_currentGame ) )
{
- sg_currentGame->StartNewMatch();
+ // sg_currentGame->StartNewMatch();
}
- sg_singlePlayer=newsg_singlePlayer;
+ // sg_singlePlayer=newsg_singlePlayer;
if (sg_singlePlayer)
sg_currentSettings = &singlePlayer;
@@ -3986,8 +3986,7 @@
// only then we can have a true winner:
if (eTeam::teams(0)->Score() >= sg_currentSettings->limitScore || // the score limit must be hit
rounds + winnerExtraRound >= sg_currentSettings->limitRounds || // or the round limit
- tSysTimeFloat()>=startTime+sg_currentSettings->limitTime*60 || // or the time limit
- (active <= 1 && eTeam::teams.Len() > 1) // or all but one players must have disconnected.
+ tSysTimeFloat()>=startTime+sg_currentSettings->limitTime*60
)
{
bool declareChampion = true;
@@ -4114,7 +4113,7 @@
void gGame::StartNewMatch(){
check_hs();
- rounds=-100;
+ // rounds=-100;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment