From 19759b99e2316a06c5761706af4ee182eed1736b Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Fri, 16 Sep 2022 05:51:19 +0300 Subject: [PATCH 1/2] update build tools --- tools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools b/tools index cd658d9..0e821f3 160000 --- a/tools +++ b/tools @@ -1 +1 @@ -Subproject commit cd658d9af958a46be3d46679dde4e3af6109c59e +Subproject commit 0e821f3dbbc6b3528f2028b0060d3b6f7f1c4b93 From 771f6708f15351b0086d1467afddfd8498f6e7b1 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Fri, 16 Sep 2022 06:36:06 +0300 Subject: [PATCH 2/2] fix admin status --- ServerExt/Classes/ExtPlayerReplicationInfo.uc | 2 +- ServerExtMut/Classes/ServerExtMut.uc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ServerExt/Classes/ExtPlayerReplicationInfo.uc b/ServerExt/Classes/ExtPlayerReplicationInfo.uc index 4e6f24d..10b91f4 100644 --- a/ServerExt/Classes/ExtPlayerReplicationInfo.uc +++ b/ServerExt/Classes/ExtPlayerReplicationInfo.uc @@ -842,6 +842,6 @@ event BeginState(Name N) defaultproperties { RespawnCounter=-1 - AdminType=255 + AdminType=AT_Player TaggedPlayerName="Player" } \ No newline at end of file diff --git a/ServerExtMut/Classes/ServerExtMut.uc b/ServerExtMut/Classes/ServerExtMut.uc index ba9a896..b366c3a 100644 --- a/ServerExtMut/Classes/ServerExtMut.uc +++ b/ServerExtMut/Classes/ServerExtMut.uc @@ -1518,7 +1518,7 @@ final function InitCustomChars(ExtPlayerReplicationInfo PRI) final function bool HasPrivs(ExtPlayerReplicationInfo P) { - return WorldInfo.NetMode==NM_StandAlone || (P!=None && P.ShowAdminName() && (P.AdminType<=1 || P.AdminType==255)); + return WorldInfo.NetMode==NM_StandAlone || (P != None && P.ShowAdminName() && (P.AdminType <= AT_Admin || P.AdminType == AT_Player)); } function AdminCommand(ExtPlayerController PC, int PlayerID, int Action)