Skip to content

Commit

Permalink
Added a max time cap (currently 3 days) on an arc run. Stop-gap until…
Browse files Browse the repository at this point in the history
… I return from vacation.
  • Loading branch information
jasonrohrer committed Aug 11, 2019
1 parent d70cfcf commit 441d819
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5713,7 +5713,17 @@ int processLoggedInPlayer( char inAllowReconnect,
triggerApocalypseNow();
}
}


if( !apocalypseTriggered ) {
int maxSeconds =
SettingsManager::getIntSetting( "arcRunMaxSeconds", 0 );

if( maxSeconds > 0 &&
getArcRunningSeconds() > maxSeconds ) {
// players WON and survived past max seconds
triggerApocalypseNow();
}
}
}


Expand Down
1 change: 1 addition & 0 deletions server/settings/arcRunMaxSeconds.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
259200

0 comments on commit 441d819

Please sign in to comment.