Permalink
Browse files

Fixed map being reset on page change in saves

  • Loading branch information...
1 parent 08be4a1 commit 63f0ea094a25062502fa378477dd72c640c11c63 @robotboy655 robotboy655 committed Aug 29, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 garrysmod/html/js/menu/WorkshopFiles.js
@@ -26,7 +26,7 @@ WorkshopFiles.prototype.Init = function( namespace, scope, RootScope )
if ( scope.Offset + delta >= scope.TotalResults ) return;
if ( scope.Offset + delta < 0 ) return;
- scope.SwitchWithTag( scope.Category, scope.Offset + delta, scope.Tagged )
+ scope.SwitchWithTag( scope.Category, scope.Offset + delta, scope.Tagged, scope.MapName )
}
this.Scope.GoToPage = function( page )
@@ -36,14 +36,14 @@ WorkshopFiles.prototype.Init = function( namespace, scope, RootScope )
if ( Offset >= scope.TotalResults ) return;
if ( Offset < 0 ) return;
- scope.SwitchWithTag( scope.Category, Offset, scope.Tagged )
+ scope.SwitchWithTag( scope.Category, Offset, scope.Tagged, scope.MapName )
}
this.Scope.Switch = function( type, offset )
{
- this.SwitchWithTag( type, offset, "" );
- scope.Category = type;
+ this.SwitchWithTag( type, offset, "", scope.MapName );
+ scope.Category = type; // Do we need this here?
}
this.Scope.SwitchWithTag = function( type, offset, searchtag, mapname )

0 comments on commit 63f0ea0

Please sign in to comment.