Skip to content

Commit

Permalink
Update cs2rtv.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LaplaceTor committed Jun 6, 2024
1 parent 11f8054 commit 54953da
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions cs2rtv/cs2rtv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public override void Load(bool hotReload)
{
if(!hotReload && !firstmaprandom)
{
if(!Server.MapName.Contains("de"))
if(!Server.MapName.Contains("de_"))
{
Server.NextFrame(()=>
{
Expand Down Expand Up @@ -286,13 +286,11 @@ public void StartRtv()
{
isrtv = true;
isforcertv = true;
string? randommap = null;
while (randommap == null)
{
int index = random.Next(0, maplist.Count - 1);
if (mapcooldown.Find(x => Regex.IsMatch(maplist[index], x)) != null) continue;
else randommap = maplist[index];
}
var randommap = "";
int index = random.Next(0, maplist.Count - 1);
if (mapcooldown.Find(x => Regex.IsMatch(maplist[index], x)) == null)
randommap = maplist[index];

rtvwin = true;
Logger.LogInformation("空服换图");
VoteEnd(randommap);
Expand Down

0 comments on commit 54953da

Please sign in to comment.