Permalink
Browse files

Clear gamemode list on refresh

  • Loading branch information...
1 parent 9aa82d5 commit 5f02bce89d8adb824ab6f05011d412b3d68a72c4 @robotboy655 robotboy655 committed Feb 10, 2015
Showing with 2 additions and 8 deletions.
  1. +2 −8 garrysmod/html/js/menu/control.Servers.js
@@ -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 ] );
@@ -138,7 +133,6 @@ function ControllerServers( $scope, $element, $rootScope, $location )
if ( FirstTime )
{
- //lua.Run( "DoStopServers()" );
$scope.Refresh();
}
}

0 comments on commit 5f02bce

Please sign in to comment.