File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Server/mods/deathmatch/logic/luadefs Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1929,12 +1929,6 @@ int CLuaPlayerDefs::KickPlayer(lua_State* luaVM)
1929
1929
CScriptArgReader argStream (luaVM);
1930
1930
argStream.ReadUserData (pPlayer);
1931
1931
1932
- if (pPlayer->IsRedirecting ())
1933
- {
1934
- lua_pushboolean (luaVM, false );
1935
- return 1 ;
1936
- }
1937
-
1938
1932
if (argStream.NextIsUserData ())
1939
1933
{
1940
1934
CClient* pResponsible;
@@ -1961,6 +1955,12 @@ int CLuaPlayerDefs::KickPlayer(lua_State* luaVM)
1961
1955
1962
1956
if (!argStream.HasErrors ())
1963
1957
{
1958
+ if (pPlayer->IsRedirecting ())
1959
+ {
1960
+ lua_pushboolean (luaVM, false );
1961
+ return 1 ;
1962
+ }
1963
+
1964
1964
if (CStaticFunctionDefinitions::KickPlayer (pPlayer, strResponsible, strReason))
1965
1965
{
1966
1966
lua_pushboolean (luaVM, true );
You can’t perform that action at this time.
0 commit comments