Skip to content

Commit

Permalink
Clear gamemode list on refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
robotboy655 committed Feb 10, 2015
1 parent 9aa82d5 commit 5f02bce
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions garrysmod/html/js/menu/control.Servers.js
Expand Up @@ -30,13 +30,8 @@ function ControllerServers( $scope, $element, $rootScope, $location )
//
// Clear out all of the servers
//
var gm = ServerTypes[Scope.ServerType].gamemodes;
for ( k in gm )
{
gm[k].servers.length = 0
gm[k].num_servers = 0
gm[k].num_players = 0
}
ServerTypes[Scope.ServerType].gamemodes = {};
ServerTypes[Scope.ServerType].list.length = 0;

if ( !IN_ENGINE )
TestUpdateServers( Scope.ServerType, RequestNum[ Scope.ServerType ] );
Expand Down Expand Up @@ -138,7 +133,6 @@ function ControllerServers( $scope, $element, $rootScope, $location )

if ( FirstTime )
{
//lua.Run( "DoStopServers()" );
$scope.Refresh();
}
}
Expand Down

0 comments on commit 5f02bce

Please sign in to comment.