Skip to content

Commit

Permalink
Фикс команд !sactiv/!sdeactiv
Browse files Browse the repository at this point in the history
  • Loading branch information
angelus1637 committed Feb 16, 2022
1 parent 430f30f commit 1834f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/autorun/metrostroi_advanced_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ if SERVER then
for RouteID, RouteInfo in pairs(ent.Routes) do
if (RouteInfo.RouteName and RouteInfo.RouteName:upper() == Name:upper() or Name == "*") and RouteInfo.Emer then
route_found = true
if ent.LastOpenedRoute and k != ent.LastOpenedRoute then ent:CloseRoute(self.LastOpenedRoute) end
if ent.LastOpenedRoute and k != ent.LastOpenedRoute then ent:CloseRoute(ent.LastOpenedRoute) end
if not RouteInfo.IsOpened then
RouteInfo.IsOpened = true
route_opened = true
Expand Down Expand Up @@ -443,7 +443,7 @@ if SERVER then
for RouteID, RouteInfo in pairs(ent.Routes) do
if (RouteInfo.RouteName and RouteInfo.RouteName:upper() == Name:upper() or Name == "*") and RouteInfo.Emer then
route_found = true
if ent.LastOpenedRoute and k != ent.LastOpenedRoute then ent:CloseRoute(self.LastOpenedRoute) end
if ent.LastOpenedRoute and k != ent.LastOpenedRoute then ent:CloseRoute(ent.LastOpenedRoute) end
if RouteInfo.IsOpened then
RouteInfo.IsOpened = false
route_closed = true
Expand Down

0 comments on commit 1834f61

Please sign in to comment.