diff --git a/data/mp/multiplay/script/rules/endconditions.js b/data/mp/multiplay/script/rules/endconditions.js index 3851057240d..679e83dee43 100644 --- a/data/mp/multiplay/script/rules/endconditions.js +++ b/data/mp/multiplay/script/rules/endconditions.js @@ -398,10 +398,9 @@ function activityAlert() console( _("- unit building - research completion - construction of base structures (factories, power plants, laboratories, modules and oil derricks) - dealing damage") ); - if (getMissionTime() > idleTime) + if (getMissionTime() <= -1) { - setMissionTime( - (playersTeam[selectedPlayer].lastActivity + idleTime - gameTime) / 1000); + setMissionTime((playersTeam[selectedPlayer].lastActivity + idleTime - gameTime) / 1000); } } if (playersTeam[selectedPlayer].lastActivity + idleTime / 2 > gameTime)