Skip to content

Commit

Permalink
Fix duplicate MapList entry bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ijre committed Oct 23, 2022
1 parent 8c998a4 commit f8154c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,11 @@ private void MapList_EnterOrLeave(object sender, EventArgs e)
for (int i = 0; i < maps.Count; i++)
{
if (!maps[i].EndsWith(".bsp"))
{
maps.RemoveAt(i);
i--;
continue;
}

maps[i] = maps[i].Substring(maps[i].LastIndexOf("\\") + 1); // remove slashes from absolute dir
maps[i] = maps[i].Remove(maps[i].LastIndexOf("."), 4); // remove ext because it breaks srcds
Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.1.2")]
[assembly: AssemblyFileVersion("4.0.0.1")]
[assembly: AssemblyVersion("4.0.1.3")]
[assembly: AssemblyFileVersion("4.0.1.3")]

0 comments on commit f8154c4

Please sign in to comment.